Element.seek

bool seek(double rate, gst.types.Format format, gst.types.SeekFlags flags, gst.types.SeekType startType, long start, gst.types.SeekType stopType, long stop)

Sends a seek event to an element. See [gst.event.Event.newSeek] for the details of the parameters. The seek event is sent to the element using [gst.element.Element.sendEvent].

MT safe.

Parameters

rateThe new playback rate
formatThe format of the seek values
flagsThe optional seek flags.
startTypeThe type and flags for the new start position
startThe value of the new start position
stopTypeThe type and flags for the new stop position
stopThe value of the new stop position

Returns

true if the event was handled. Flushing seeks will trigger a

preroll, which will emit [gst.types.MessageType.AsyncDone].