Package com.jogamp.opengl.util.av
Interface GLMediaPlayer.GLMediaFrameListener
-
- All Superinterfaces:
TextureSequence.TexSeqEventListener<GLMediaPlayer>
- Enclosing interface:
- GLMediaPlayer
public static interface GLMediaPlayer.GLMediaFrameListener extends TextureSequence.TexSeqEventListener<GLMediaPlayer>
Optional Video
TextureSequence.TextureFrame
listener. Usually one wants to useGLMediaPlayer.getNextTexture(GL)
is used to retrieve the next frame and keep decoding going, whileGLMediaPlayer#getLastTexture(GL)
is used to simply retrieve the last decoded frame.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.
-
-
Method Summary
-
Methods inherited from interface com.jogamp.opengl.util.texture.TextureSequence.TexSeqEventListener
newFrameAvailable
-
-