org.gstreamer.query
Class SeekingQuery
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Query
org.gstreamer.query.SeekingQuery
public class SeekingQuery
- extends Query
Used for querying the seeking properties of the stream.
Method Summary |
long |
getEnd()
Gets the end of the segment. |
Format |
getFormat()
Gets the Format of the start and end values for the segment. |
long |
getStart()
Gets the start of the segment. |
boolean |
isSeekable()
Checks if the stream is seekable. |
void |
setSeeking(Format format,
boolean seekable,
long start,
long end)
Sets the seeking query result fields. |
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 |
SeekingQuery
public SeekingQuery(NativeObject.Initializer init)
SeekingQuery
public SeekingQuery(Format format)
- Constructs a new query object for querying seeking properties of the stream.
- Parameters:
format
- the default Format
for the new query.
setSeeking
public void setSeeking(Format format,
boolean seekable,
long start,
long end)
- Sets the seeking query result fields.
- Parameters:
format
- the format to set for the start
and end
values.seekable
- the seekable flag to setstart
- the start of the segment.end
- the end of the segment.
isSeekable
public boolean isSeekable()
- Checks if the stream is seekable.
- Returns:
true
if the stream is seekable.
getFormat
public Format getFormat()
- Gets the
Format
of the start and end values for the segment.
- Returns:
- the format of the start and end values.
getStart
public long getStart()
- Gets the start of the segment.
- Returns:
- the start of the segment.
getEnd
public long getEnd()
- Gets the end of the segment.
- Returns:
- the end of the segment.