Segment.positionFromStreamTime

ulong positionFromStreamTime(gst.types.Format format, ulong streamTime)

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

Parameters

formatthe format of the segment.
streamTimethe stream_time in the segment

Returns

the position in the segment for stream_time. This function returns

-1 when stream_time is -1 or when it is not inside segment.