Gst.Element.prototype.send_event
function send_event(event:Gst.Event):Boolean { // Gjs wrapper for gst_element_send_event() }
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 upstream events or a random linked source pad for downstream events.
This function takes owership of the provided event so you should gst_event_ref() it if you want to reuse the event after this call.
MT safe.
- event
the Gst.Event to send to the element.
- Returns
true if the event was handled. Events that trigger a preroll (such as flushing seeks and steps) will emit Gst.MessageType.async_done.