diff options
author | Sven Gothel <[email protected]> | 2013-08-31 16:40:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-08-31 16:40:44 +0200 |
commit | 14d2d6865ebcfd8f4c1bdb1600f29fc2b1a4366d (patch) | |
tree | 8c1b2c9b0e7e758d0d5c9ba9771a6e456b5bef30 /src/test/com/jogamp/opengl | |
parent | 658493d2cdceeb9a61d6c40b3d8f7354ce0d7534 (diff) |
GLMediaPlayer: pause() -> pause(boolean flush): Allowing to flush buffers, next frame after play() will provide new frame. Added API doc.
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java | 2 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java index 57da78131..d10bba8c7 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java @@ -130,7 +130,7 @@ public class MovieCube implements GLEventListener { if(GLMediaPlayer.State.Paused == mPlayer.getState()) { mPlayer.play(); } else { - mPlayer.pause(); + mPlayer.pause(false); } break; } diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java index b52e1fb21..907813191 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java @@ -124,7 +124,7 @@ public class MovieSimple implements GLEventListener { public void mousePressed(MouseEvent e) { if(e.getY()<=winHeight/2 && null!=mPlayer && 1 == e.getClickCount()) { if(GLMediaPlayer.State.Playing == mPlayer.getState()) { - mPlayer.pause(); + mPlayer.pause(false); } else { mPlayer.play(); } @@ -190,7 +190,7 @@ public class MovieSimple implements GLEventListener { if(GLMediaPlayer.State.Paused == mPlayer.getState()) { mPlayer.play(); } else { - mPlayer.pause(); + mPlayer.pause(false); } break; } |