Segment.positionFromStreamTime

Convert @stream_time into a position in the segment so that gst_segment_to_stream_time() with that position returns @stream_time.

class Segment
ulong
positionFromStreamTime
(
GstFormat format
,)

Parameters

format GstFormat

the format of the segment.

streamTime ulong

the stream_time in the segment

Return Value

Type: ulong

the position in the segment for @stream_time. This function returns -1 when @stream_time is -1 or when it is not inside @segment.

Meta