position_from_stream_time


Description:

[ Version ( since = "1.8" ) ]
public uint64 position_from_stream_time (Format format, uint64 stream_time)

Convert stream_time into a position in the segment so that to_stream_time with that position returns stream_time.

Parameters:

this

a Segment structure.

format

the format of the segment.

stream_time

the 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 this.