Gst.Event.new_gap

function new_gap(timestamp:Gst.ClockTime, duration:Gst.ClockTime):Gst.Event {
    // Gjs wrapper for gst_event_new_gap()
}

Create a new GAP event. A gap event can be thought of as conceptually equivalent to a buffer to signal that there is no data for a certain amount of time. This is useful to signal a gap to downstream elements which may wait for data, such as muxers or mixers or overlays, especially for sparse streams such as subtitle streams.

timestamp

the start time (pts) of the gap

duration

the duration of the gap

Returns

the new GAP event.