-1 when running_time is -1 or when it is not inside segment.
Segment.toPosition
ulong toPosition(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
format | the format of the segment. |
runningTime | the running_time in the segment |
Returns
the position in the segment for running_time. This function returns
Deprecated
Use [gst.segment.Segment.positionFromRunningTime] instead.