public static interface GLMediaPlayer.GLMediaEventListener extends TextureSequence.TexSeqEventListener<GLMediaPlayer>
As the contract of TexSeqEventListener
requests,
implementations of GLMediaPlayer.GLMediaEventListener
shall also:
GLMediaPlayer
commands on another thread, orGLEventListener
implementation.Modifier and Type | Field and 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 to
GLMediaPlayer.State.Initialized . |
static int |
EVENT_CHANGE_LENGTH
Stream length change.
|
static int |
EVENT_CHANGE_PAUSE
State changed to
GLMediaPlayer.State.Paused . |
static int |
EVENT_CHANGE_PLAY
State changed to
GLMediaPlayer.State.Playing . |
static int |
EVENT_CHANGE_SIZE
TextureFrame size or vertical flip change.
|
static int |
EVENT_CHANGE_UNINIT
State changed to
GLMediaPlayer.State.Uninitialized . |
static int |
EVENT_CHANGE_VID
Stream video id change.
|
Modifier and Type | Method and Description |
---|---|
void |
attributesChanged(GLMediaPlayer mp,
int event_mask,
long when) |
newFrameAvailable
static final int EVENT_CHANGE_INIT
GLMediaPlayer.State.Initialized
. See Lifecycle.static final int EVENT_CHANGE_UNINIT
GLMediaPlayer.State.Uninitialized
. See Lifecycle.static final int EVENT_CHANGE_PLAY
GLMediaPlayer.State.Playing
. See Lifecycle.static final int EVENT_CHANGE_PAUSE
GLMediaPlayer.State.Paused
. See Lifecycle.static final int EVENT_CHANGE_EOS
static final int EVENT_CHANGE_ERR
GLMediaPlayer.StreamException
and Lifecycle.static final int EVENT_CHANGE_VID
static final int EVENT_CHANGE_AID
static final int EVENT_CHANGE_SIZE
static final int EVENT_CHANGE_FPS
static final int EVENT_CHANGE_BPS
static final int EVENT_CHANGE_LENGTH
static final int EVENT_CHANGE_CODEC
void attributesChanged(GLMediaPlayer mp, int event_mask, long when)
mp
- the event sourceevent_mask
- the changes attributeswhen
- system time in msec.Copyright 2010 JogAmp Community.