id_wait
function id_wait(id:Gst.ClockID):Gst.ClockReturn { // Gjs wrapper for gst_clock_id_wait() }
Perform a blocking wait on id. id should have been created with Gst.Clock.prototype.new_single_shot_id or Gst.Clock.prototype.new_periodic_id and should not have been unscheduled with a call to id_unschedule.
If the jitter argument is not null and this function returns #GST_CLOCK_OK or #GST_CLOCK_EARLY, it will contain the difference against the clock and the time of id when this method was called. Positive values indicate how late id was relative to the clock (in which case this function will return #GST_CLOCK_EARLY). Negative values indicate how much time was spent waiting on the clock before this function returned.
- id
The Gst.ClockID to wait on
- Returns
the result of the blocking wait. #GST_CLOCK_EARLY will be returned if the current clock time is past the time of id, #GST_CLOCK_OK if id was scheduled in time. #GST_CLOCK_UNSCHEDULED if id was unscheduled with id_unschedule. MT safe.