Element.seek

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

rate double

The new playback rate

format gst.types.Format

The format of the seek values

flags gst.types.SeekFlags

The optional seek flags.

startType gst.types.SeekType

The type and flags for the new start position

start long

The value of the new start position

stopType gst.types.SeekType

The type and flags for the new stop position

stop long

The value of the new stop position

Return Value

Type: bool

true if the event was handled. Flushing seeks will trigger a preroll, which will emit gst.types.MessageType.AsyncDone.