set_segment


Description:

public void set_segment (double rate, Format format, int64 start_value, int64 stop_value)

Answer a segment query by setting the requested values.

The normal playback segment of a pipeline is 0 to duration at the default rate of 1.0. If a seek was performed on the pipeline to play a different segment, this query will return the range specified in the last seek.

start_value and stop_value will respectively contain the configured playback range start and stop values expressed in format. The values are always between 0 and the duration of the media and start_value <= stop_value. rate will contain the playback rate. For negative rates, playback will actually happen from stop_value to start_value.

Parameters:

this

a Query

rate

the rate of the segment

format

the Format of the segment values (start_value and stop_value)

start_value

the start value

stop_value

the stop value




2022 vala-language.org