public final class SeekFlags
extends java.lang.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.
|
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