Gst.Event.new_latency
function new_latency(latency:Gst.ClockTime):Gst.Event { // Gjs wrapper for gst_event_new_latency() }
Create a new latency event. The event is sent upstream from the sinks and notifies elements that they should add an additional latency to the running time before synchronising against the clock.
The latency is mostly used in live sinks and is always expressed in the time format.
- latency
the new latency value
- Returns
a new Gst.Event