public enum VideoPlayback extends Enum<VideoPlayback> implements Enumeration
VideoStream
will playback. When the Playback
(get
) is set to
RealTime
, the video will playback in real time.
When the Playback
(get
) is set to TimeInterval
, the video will
seek to the frame that corresponds linearly to the current SceneManager
time
within the interval defined by IntervalStartTime
(get
) and IntervalEndTime
(get
).
For instance, if the video contains 60 frames and the IntervalStartTime
(get
) and
IntervalEndTime
(get
) specify a 60 minute interval, the first frame of the video will be displayed when the
SceneManager
time is equal to IntervalStartTime
(get
). Similarly,
when SceneManager
time is equal to IntervalEndTime
(get
), the last
frame of the video will be displayed. Intermediate times within that interval are mapped linearly to the frames in the video.Enum Constant and Description |
---|
REAL_TIME
The video will playback in realtime.
|
TIME_INTERVAL
The video will playback in coincidence with the
SceneManager time within
the interval defined by IntervalStartTime (get ) and
IntervalEndTime (get ). |
Modifier and Type | Method and Description |
---|---|
static VideoPlayback |
getDefault()
Get the enum constant that is considered to be the default.
|
static VideoPlayback |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static VideoPlayback |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VideoPlayback[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VideoPlayback REAL_TIME
public static final VideoPlayback TIME_INTERVAL
SceneManager
time within
the interval defined by IntervalStartTime
(get
) and
IntervalEndTime
(get
).
For optimal synchronization with Insight3D animation, a video format should be used that supports frame accurate seeking through indexing. Motion JPEG (M-JPEG), Digital Video (DVSD), and Quicktime (MOV), are among the codecs and formats that provide full index blocks and support frame accurate seeking.
public static VideoPlayback[] values()
for (VideoPlayback c : VideoPlayback.values()) System.out.println(c);
public static VideoPlayback 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 getValue()
getValue
in interface Enumeration
@Nonnull public static VideoPlayback getFromValue(int value)
value
- a numeric value.@Nonnull public static VideoPlayback getDefault()