Element.sendEvent

Sends an event to an element. If the element doesn't implement an event handler, the event will be pushed on a random linked sink pad for downstream events or a random linked source pad for upstream events.

This function takes ownership of the provided event so you should Event.ref it if you want to reuse the event after this call.

MT safe.

class Element
bool
sendEvent

Parameters

event Event

the gstreamer.Event to send to the element.

Return Value

Type: bool

TRUE if the event was handled. Events that trigger a preroll (such as flushing seeks and steps) will emit GST_MESSAGE_ASYNC_DONE.