Add playback speed control

Adjustable playback speed control in the form of a slider with a range from 0.01x to 2x.

Closes #33
This commit is contained in:
Rafostar
2021-01-19 16:20:22 +01:00
parent 3ba21d42ec
commit 994491d687
3 changed files with 38 additions and 7 deletions

View File

@@ -78,6 +78,11 @@ class ClapperPlayer extends PlayerBase
set_uri(uri)
{
/* FIXME: Player does not notify about
* rate change after file load */
if(this.rate !== 1)
this.set_rate(1);
if(Gst.Uri.get_protocol(uri) !== 'file')
return super.set_uri(uri);