public enum SeekFlags extends Enum<SeekFlags> implements NativeFlags<SeekFlags>
seek or
SeekEvent
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstEvent.html#GstSeekFlags
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.
| Enum Constant and Description |
|---|
ACCURATE
Accurate position is requested, this might be considerably slower for
some formats.
|
FLUSH
Flush pipeline.
|
KEY_UNIT
Seek to the nearest keyframe.
|
SEGMENT
Perform a segment seek.
|
SNAP_AFTER
go to a location after the requested position, if %GST_SEEK_FLAG_KEY_UNIT
this means the keyframe at of after the requested position.
|
SNAP_BEFORE
go to a location before the requested position, if
%GST_SEEK_FLAG_KEY_UNIT this means the keyframe at or before the
requested position the one at or before the seek target.
|
TRICKMODE
when doing fast forward or fast reverse playback, allow elements to skip
frames instead of generating all frames.
|
TRICKMODE_KEY_UNITS
when doing fast forward or fast reverse playback, request that elements
only decode keyframes and skip all other content, for formats that have
keyframes.
|
TRICKMODE_NO_AUDIO
when doing fast forward or fast reverse playback, request that audio
decoder elements skip decoding and output only gap events or silence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
intValue() |
static SeekFlags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeekFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOffromInt, toInt, toIntfromInt, fromIntpublic static final SeekFlags FLUSH
public static final SeekFlags ACCURATE
public static final SeekFlags KEY_UNIT
public static final SeekFlags SEGMENT
public static final SeekFlags TRICKMODE
public static final SeekFlags SNAP_BEFORE
public static final SeekFlags SNAP_AFTER
public static final SeekFlags TRICKMODE_KEY_UNITS
public static final SeekFlags TRICKMODE_NO_AUDIO
public static SeekFlags[] values()
for (SeekFlags c : SeekFlags.values()) System.out.println(c);
public static SeekFlags valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int intValue()
intValue in interface NativeEnum<SeekFlags>Copyright © 2021 gstreamer-java. All rights reserved.