Gst.Segment.prototype.to_position
function to_position(format:Gst.Format, running_time:Number):Number { // Gjs wrapper for gst_segment_to_position() }
Convert running_time into a position in the segment so that Gst.to_running_time with that position returns running_time.
- format
the format of the segment.
- running_time
the running_time in the segment
- Returns
the position in the segment for running_time. This function returns -1 when running_time is -1 or when it is not inside segment.