|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Query
org.gstreamer.query.SegmentQuery
public class SegmentQuery
Used to discover information about the currently configured segment for playback.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
---|
org.gstreamer.lowlevel.NativeObject.Initializer |
Field Summary |
---|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, LIFECYCLE, ownsHandle |
Constructor Summary | |
---|---|
SegmentQuery(Format format)
Constructs a new segment query object. |
|
SegmentQuery(org.gstreamer.lowlevel.NativeObject.Initializer init)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.gstreamer.Query |
---|
getStructure, makeWritable |
Methods inherited from class org.gstreamer.MiniObject |
---|
disposeNativeHandle, isWritable, makeWritable, objectFor, ref, unref |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
---|
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SegmentQuery(org.gstreamer.lowlevel.NativeObject.Initializer init)
public SegmentQuery(Format format)
format
- the Format
for the new query.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |