Gst.Event.new_custom
function new_custom(type:Gst.EventType, structure:Gst.Structure):Gst.Event { // Gjs wrapper for gst_event_new_custom() }
Create a new custom-typed event. This can be used for anything not handled by other event-specific functions to pass an event to another element.
Make sure to allocate an event type with the #GST_EVENT_MAKE_TYPE macro, assigning a free number and filling in the correct direction and serialization flags.
New custom events can also be created by subclassing the event type if needed.
- type
The type of the new event
- structure
the structure for the event. The event will take ownership of the structure.
- Returns
the new custom event.