org.gstreamer
public final class SeekFlags extends Object
seek
or
SeekEvent
All flags can be used together.
A non flushing seek might take some time to perform as the currently playing data in the pipeline will not be cleared.
An accurate seek might be slower for formats that don't have any indexes or timestamp markers in the stream. Specifying this flag might require a complete scan of the file in those cases.
When performing a segment seek: after the playback of the segment completes,
no EOS will be emitted by the element that performed the seek, but a
Bus.SEGMENT_DONE
message will be posted on the bus by the element.
When this message is posted, it is possible to send a new seek event to
continue playback. With this seek method it is possible to perform seamless
looping or simple linear editing.
Modifier and Type | Field and Description |
---|---|
static int |
ACCURATE
Accurate position is requested, this might be considerably slower for some formats.
|
static int |
FLUSH
Flush pipeline.
|
static int |
KEY_UNIT
Seek to the nearest keyframe.
|
static int |
NONE
No flag.
|
static int |
SEGMENT
Perform a segment seek.
|
static int |
SKIP
when doing fast forward or fast reverse playback, allow elements to skip frames instead of generating all frames.
|
static int |
SNAP_AFTER
go to a location after the requested position, if KEY_UNIT this means the keyframe at of after the requested position.
|
static int |
SNAP_BEFORE
go to a location before the requested position, if KEY_UNIT this means the keyframe at or before the requested position the one at or before the seek target.
|
static int |
SNAP_NEAREST
go to a position near the requested position, if KEY_UNIT this means the keyframe closest to the requested position, if both keyframes are at an equal distance, behaves like SNAP_BEFORE.
|
Constructor and Description |
---|
SeekFlags() |
public static final int NONE
public static final int FLUSH
public static final int ACCURATE
public static final int KEY_UNIT
public static final int SEGMENT
public static final int SKIP
public static final int SNAP_BEFORE
public static final int SNAP_AFTER
public static final int SNAP_NEAREST
Copyright © 2014. All rights reserved.