mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Add fast seeking support as a patch
This commit is contained in:
@@ -175,15 +175,7 @@ class ClapperPlayer extends PlayerBase
|
||||
|
||||
debug(`${this.seekingMode} seeking to position: ${position}`);
|
||||
|
||||
if(this.seekingMode !== 'fast')
|
||||
return super.seek(position);
|
||||
|
||||
let pipeline = this.get_pipeline();
|
||||
let flags = Gst.SeekFlags.FLUSH
|
||||
| Gst.SeekFlags.KEY_UNIT
|
||||
| Gst.SeekFlags.SNAP_AFTER;
|
||||
|
||||
pipeline.seek_simple(Gst.Format.TIME, flags, position);
|
||||
super.seek(position);
|
||||
}
|
||||
|
||||
seek_seconds(position)
|
||||
|
Reference in New Issue
Block a user