Translate stream_time to the segment position using the currently configured
segment. Compared to Segment.positionFromStreamTime this function can
return negative segment position.
This function is typically used by elements that need to synchronize buffers
against the clock or each other.
stream_time can be any value and the result of this function for values outside
of the segment is extrapolated.
When 1 is returned, stream_time resulted in a positive position returned
in position.
When this function returns -1, the returned position should be negated
to get the real negative segment position.
Translate stream_time to the segment position using the currently configured segment. Compared to Segment.positionFromStreamTime this function can return negative segment position.
This function is typically used by elements that need to synchronize buffers against the clock or each other.
stream_time can be any value and the result of this function for values outside of the segment is extrapolated.
When 1 is returned, stream_time resulted in a positive position returned in position.
When this function returns -1, the returned position should be negated to get the real negative segment position.