Query.setSegment

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.

class Query
void
setSegment

Parameters

rate double

the rate of the segment

format GstFormat

the #GstFormat of the segment values (@start_value and @stop_value)

startValue long

the start value

stopValue long

the stop value

Meta