Gst.Event.new_caps
function new_caps(caps:Gst.Caps):Gst.Event { // Gjs wrapper for gst_event_new_caps() }
Create a new CAPS event for caps. The caps event can only travel downstream synchronized with the buffer flow and contains the format of the buffers that will follow after the event.
- caps
a Gst.Caps
- Returns
the new CAPS event.