public class SegmentQuery extends Query
NativeObject.InitializerdefaultInit, LIFECYCLE, ownsHandle| Constructor and Description |
|---|
SegmentQuery(Format format)
Constructs a new segment query object.
|
SegmentQuery(NativeObject.Initializer init) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEnd()
Gets the end of the playback range.
|
Format |
getFormat()
Gets the format of the start and stop values in the segment query.
|
double |
getRate()
Gets the rate of the segment Query.
|
long |
getStart()
Gets the start of the playback range.
|
void |
setSegment(double rate,
Format format,
long startValue,
long stopValue)
Answers a segment query by setting the requested values.
|
getStructure, makeWritabledisposeNativeHandle, isWritable, makeWritable, ref, unrefclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toStringpublic SegmentQuery(NativeObject.Initializer init)
public void setSegment(double rate,
Format format,
long startValue,
long stopValue)
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.
startValue and stopValue 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
startValue <= stopValue. rate will contain the playback rate. For
negative rates, playback will actually happen from stopValue to
startValue.
rate - the rate of the segment.format - the Format of the segment values.startValue - the start value.stopValue - the stop value.public double getRate()
public Format getFormat()
public long getStart()
public long getEnd()