Add fast seeking (disabled by default)

The fast seeking option. It seeks to the next keyframe which reduces seeking delay over 10 times, but makes the seeking very inaccurate as a side effect (usually up to few seconds from requested position).
This commit is contained in:
Rafostar
2020-10-16 20:00:22 +02:00
parent 1119e3e792
commit 7f1264ae27
2 changed files with 16 additions and 10 deletions

View File

@@ -446,7 +446,6 @@ class ClapperInterface extends Gtk.Grid
this.lastPositionValue = positionSeconds;
this._player.seek_seconds(positionSeconds);
debug(`player is seeking to position: ${positionSeconds}`);
/* Needed to enable preview after playback is stopped */
if(this._player.state === GstPlayer.PlayerState.STOPPED)