Package com.jogamp.opengl.util.av
Interface GLMediaPlayer.GLMediaEventListener
- All Superinterfaces:
TextureSequence.TexSeqEventListener<GLMediaPlayer>
- Enclosing interface:
- GLMediaPlayer
public static interface GLMediaPlayer.GLMediaEventListener
extends TextureSequence.TexSeqEventListener<GLMediaPlayer>
As the contract of TextureSequence.TexSeqEventListener
requests,
implementations of GLMediaPlayer.GLMediaEventListener
shall also:
- off-load complex or
GLMediaPlayer
commands on another thread, or - simply changing a volatile state of their
GLEventListener
implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Stream audio id change.static final int
Stream bps change.static final int
Stream codec change.static final int
End of stream reached.static final int
An error occurred, e.g.static final int
Stream fps change.static final int
State changed toGLMediaPlayer.State.Initialized
.static final int
Stream length change.static final int
State changed toGLMediaPlayer.State.Paused
.static final int
State changed toGLMediaPlayer.State.Playing
.static final int
TextureFrame size or vertical flip change.static final int
State changed toGLMediaPlayer.State.Uninitialized
.static final int
Stream video id change. -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributesChanged
(GLMediaPlayer mp, int event_mask, long when) Methods inherited from interface com.jogamp.opengl.util.texture.TextureSequence.TexSeqEventListener
newFrameAvailable
-
Field Details
-
EVENT_CHANGE_INIT
static final int EVENT_CHANGE_INITState changed toGLMediaPlayer.State.Initialized
. See Lifecycle.- See Also:
-
EVENT_CHANGE_UNINIT
static final int EVENT_CHANGE_UNINITState changed toGLMediaPlayer.State.Uninitialized
. See Lifecycle.- See Also:
-
EVENT_CHANGE_PLAY
static final int EVENT_CHANGE_PLAYState changed toGLMediaPlayer.State.Playing
. See Lifecycle.- See Also:
-
EVENT_CHANGE_PAUSE
static final int EVENT_CHANGE_PAUSEState changed toGLMediaPlayer.State.Paused
. See Lifecycle.- See Also:
-
EVENT_CHANGE_EOS
static final int EVENT_CHANGE_EOSEnd of stream reached. See Lifecycle.- See Also:
-
EVENT_CHANGE_ERR
static final int EVENT_CHANGE_ERRAn error occurred, e.g. during off-thread initialization. SeeGLMediaPlayer.StreamException
and Lifecycle.- See Also:
-
EVENT_CHANGE_VID
static final int EVENT_CHANGE_VIDStream video id change.- See Also:
-
EVENT_CHANGE_AID
static final int EVENT_CHANGE_AIDStream audio id change.- See Also:
-
EVENT_CHANGE_SIZE
static final int EVENT_CHANGE_SIZETextureFrame size or vertical flip change.- See Also:
-
EVENT_CHANGE_FPS
static final int EVENT_CHANGE_FPSStream fps change.- See Also:
-
EVENT_CHANGE_BPS
static final int EVENT_CHANGE_BPSStream bps change.- See Also:
-
EVENT_CHANGE_LENGTH
static final int EVENT_CHANGE_LENGTHStream length change.- See Also:
-
EVENT_CHANGE_CODEC
static final int EVENT_CHANGE_CODECStream codec change.- See Also:
-
-
Method Details
-
attributesChanged
- Parameters:
mp
- the event sourceevent_mask
- the changes attributeswhen
- system time in msec.
-