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 ofGLMediaPlayer.GLMediaEventListener
shall also:- off-load complex or
GLMediaPlayer
commands on another thread, or - simply changing a volatile state of their
GLEventListener
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EVENT_CHANGE_AID
Stream audio id change.static int
EVENT_CHANGE_BPS
Stream bps change.static int
EVENT_CHANGE_CODEC
Stream codec change.static int
EVENT_CHANGE_EOS
End of stream reached.static int
EVENT_CHANGE_ERR
An error occurred, e.g.static int
EVENT_CHANGE_FPS
Stream fps change.static int
EVENT_CHANGE_INIT
State changed toGLMediaPlayer.State.Initialized
.static int
EVENT_CHANGE_LENGTH
Stream length change.static int
EVENT_CHANGE_PAUSE
State changed toGLMediaPlayer.State.Paused
.static int
EVENT_CHANGE_PLAY
State changed toGLMediaPlayer.State.Playing
.static int
EVENT_CHANGE_SIZE
TextureFrame size or vertical flip change.static int
EVENT_CHANGE_UNINIT
State changed toGLMediaPlayer.State.Uninitialized
.static int
EVENT_CHANGE_VID
Stream video id change.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
attributesChanged(GLMediaPlayer mp, int event_mask, long when)
-
Methods inherited from interface com.jogamp.opengl.util.texture.TextureSequence.TexSeqEventListener
newFrameAvailable
-
-
-
-
Field Detail
-
EVENT_CHANGE_INIT
static final int EVENT_CHANGE_INIT
State changed toGLMediaPlayer.State.Initialized
. See Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_UNINIT
static final int EVENT_CHANGE_UNINIT
State changed toGLMediaPlayer.State.Uninitialized
. See Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_PLAY
static final int EVENT_CHANGE_PLAY
State changed toGLMediaPlayer.State.Playing
. See Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_PAUSE
static final int EVENT_CHANGE_PAUSE
State changed toGLMediaPlayer.State.Paused
. See Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_EOS
static final int EVENT_CHANGE_EOS
End of stream reached. See Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_ERR
static final int EVENT_CHANGE_ERR
An error occurred, e.g. during off-thread initialization. SeeGLMediaPlayer.StreamException
and Lifecycle.- See Also:
- Constant Field Values
-
EVENT_CHANGE_VID
static final int EVENT_CHANGE_VID
Stream video id change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_AID
static final int EVENT_CHANGE_AID
Stream audio id change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_SIZE
static final int EVENT_CHANGE_SIZE
TextureFrame size or vertical flip change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_FPS
static final int EVENT_CHANGE_FPS
Stream fps change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_BPS
static final int EVENT_CHANGE_BPS
Stream bps change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_LENGTH
static final int EVENT_CHANGE_LENGTH
Stream length change.- See Also:
- Constant Field Values
-
EVENT_CHANGE_CODEC
static final int EVENT_CHANGE_CODEC
Stream codec change.- See Also:
- Constant Field Values
-
-
Method Detail
-
attributesChanged
void attributesChanged(GLMediaPlayer mp, int event_mask, long when)
- Parameters:
mp
- the event sourceevent_mask
- the changes attributeswhen
- system time in msec.
-
-