Segment.positionFromRunningTime

ulong positionFromRunningTime(gst.types.Format format, ulong runningTime)

Convert running_time into a position in the segment so that [gst.segment.Segment.toRunningTime] with that position returns running_time.

Parameters

formatthe format of the segment.
runningTimethe 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.