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.TexSeqEventListenerrequests, implementations ofGLMediaPlayer.GLMediaEventListenershall also:- off-load complex or
GLMediaPlayercommands on another thread, or - simply changing a volatile state of their
GLEventListenerimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description static intEVENT_CHANGE_AIDStream audio id change.static intEVENT_CHANGE_BPSStream bps change.static intEVENT_CHANGE_CODECStream codec change.static intEVENT_CHANGE_EOSEnd of stream reached.static intEVENT_CHANGE_ERRAn error occurred, e.g.static intEVENT_CHANGE_FPSStream fps change.static intEVENT_CHANGE_INITState changed toGLMediaPlayer.State.Initialized.static intEVENT_CHANGE_LENGTHStream length change.static intEVENT_CHANGE_PAUSEState changed toGLMediaPlayer.State.Paused.static intEVENT_CHANGE_PLAYState changed toGLMediaPlayer.State.Playing.static intEVENT_CHANGE_SIZETextureFrame size or vertical flip change.static intEVENT_CHANGE_UNINITState changed toGLMediaPlayer.State.Uninitialized.static intEVENT_CHANGE_VIDStream video id change.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattributesChanged(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.StreamExceptionand 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.
-
-