diff options
-rw-r--r-- | jnlp-files/jogl-applet-runner-newt-MovieCube-napplet.html | 71 | ||||
-rw-r--r-- | jnlp-files/jogl-applet-runner-newt-MovieCube.html | 88 | ||||
-rw-r--r-- | jnlp-files/jogl-test-applets.html | 14 | ||||
-rwxr-xr-x | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube.java | 7 | ||||
-rw-r--r-- | www/media/jogl-applet-moviecube01-small.png | bin | 0 -> 19167 bytes | |||
-rw-r--r-- | www/media/jogl-applet-moviecube01.png | bin | 0 -> 118588 bytes |
6 files changed, 179 insertions, 1 deletions
diff --git a/jnlp-files/jogl-applet-runner-newt-MovieCube-napplet.html b/jnlp-files/jogl-applet-runner-newt-MovieCube-napplet.html new file mode 100644 index 000000000..def7b72b9 --- /dev/null +++ b/jnlp-files/jogl-applet-runner-newt-MovieCube-napplet.html @@ -0,0 +1,71 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<title>JogAmp's MovieCube - GLMediaPlayer Demo 01 (NApplet)</title> +</head> +<body BGCOLOR="#ffffff"> + +<P> +JogAmp's MovieCube - GLMediaPlayer Demo 01 +</P> + +<P> +<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" + width="510" height="300"> + <param name="code" value="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run"> + <param name="archive" value="jar/gluegen-rt.jar, + jar/jogl.all.jar, + jar/jogl.test.jar"> + <param name="java_arguments" value="-Dsun.java2d.noddraw=true"> + <param name="gl_event_listener_class" value="com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieCube"> + <param name="gl_profile" value="GL2ES2"> + <param name="gl_swap_interval" value="1"> + <param name="gl_debug" value="false"> + <param name="gl_trace" value="false"> + <comment> + <embed code="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run" + width="510" height="300" + type="application/x-java-applet;version=1.6" + pluginspage="http://java.sun.com/javase/downloads/ea.jsp" + archive="jar/gluegen-rt.jar, + jar/jogl.all.jar, + jar/jogl.test.jar" + codebase_lookup" value="false" + java_arguments="-Dsun.java2d.noddraw=true" + gl_event_listener_class="com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieCube" + gl_profile="GL2ES2" + gl_swap_interval="1" + gl_debug="false" + gl_trace="false"> + <noembed>Sorry, no Java support detected.</noembed> + </embed> + </comment> +</object> + +</P> + +<P> +MovieCube Keys:<br> +<ul> + <li> Cursor-Left - bwd 1s</li> + <li> Cursor-Up - fwd 10s</li> + <li> Cursor-Right - fwd 1s</li> + <li> Cursor-Down - bwd 10s</li> + <li> Escape - Restart w/ normal speed</li> + <li> Space - Toggle Pause</li> + <li> S - Half Speed</li> + <li> F - Double Speed</li> +</ul> +</P> +<P> +JOGL NEWT JNLP Applet Runner Special Keys:<br> +<ul> + <li> d - toggle decoration </li> + <li> f - toggle fullscreen </li> + <li> r - in/out browser window </li> + <li> a - on/off always-on-top </li> +</ul> +</P> + +</body> +</html> diff --git a/jnlp-files/jogl-applet-runner-newt-MovieCube.html b/jnlp-files/jogl-applet-runner-newt-MovieCube.html new file mode 100644 index 000000000..6b1654ed7 --- /dev/null +++ b/jnlp-files/jogl-applet-runner-newt-MovieCube.html @@ -0,0 +1,88 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<title>JogAmp's MovieCube - GLMediaPlayer Demo 01</title> +</head> +<body BGCOLOR="#ffffff"> + +<P> +JogAmp's MovieCube - GLMediaPlayer Demo 01 +</P> + +<P> +<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" + width="510" height="300"> + <param name="code" value="org.jdesktop.applet.util.JNLPAppletLauncher"> + <param name="archive" value="jar/applet-launcher.jar, + jar/gluegen-rt.jar, + jar/jogl.all.jar, + jar/jogl.test.jar"> + <param name="codebase_lookup" value="false"> + <param name="subapplet.classname" value="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run"> + <param name="subapplet.displayname" value="MovieCube"> + <param name="noddraw.check" value="true"> + <param name="progressbar" value="true"> + <param name="jnlpNumExtensions" value="1"> + <param name="jnlpExtension1" value="jogl-all-awt.jnlp"> + <param name="java_arguments" value="-Dsun.java2d.noddraw=true"> + <param name="gl_event_listener_class" value="com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieCube"> + <param name="gl_profile" value="GL2ES2"> + <param name="gl_swap_interval" value="1"> + <param name="gl_debug" value="false"> + <param name="gl_trace" value="false"> + <param name="jnlp_href" value="jogl-applet-runner-newt.jnlp"> + <comment> + <embed code="org.jdesktop.applet.util.JNLPAppletLauncher" + width="510" height="300" + type="application/x-java-applet;version=1.6" + pluginspage="http://java.sun.com/javase/downloads/ea.jsp" + archive="jar/applet-launcher.jar, + jar/gluegen-rt.jar, + jar/jogl.all.jar, + jar/jogl.test.jar" + codebase_lookup" value="false" + subapplet.classname="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run" + subapplet.displayname="MovieCube" + noddraw.check="true" + progressbar="true" + jnlpNumExtensions="1" + jnlpExtension1="jogl-all-awt.jnlp" + java_arguments="-Dsun.java2d.noddraw=true" + gl_event_listener_class="com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieCube" + gl_profile="GL2ES2" + gl_swap_interval="1" + gl_debug="false" + gl_trace="false" + jnlp_href="jogl-applet-runner-newt.jnlp"> + <noembed>Sorry, no Java support detected.</noembed> + </embed> + </comment> +</object> + +</P> + +<P> +MovieCube Keys:<br> +<ul> + <li> Cursor-Left - bwd 1s</li> + <li> Cursor-Up - fwd 10s</li> + <li> Cursor-Right - fwd 1s</li> + <li> Cursor-Down - bwd 10s</li> + <li> Escape - Restart w/ normal speed</li> + <li> Space - Toggle Pause</li> + <li> S - Half Speed</li> + <li> F - Double Speed</li> +</ul> +</P> +<P> +JOGL NEWT JNLP Applet Runner Special Keys:<br> +<ul> + <li> d - toggle decoration </li> + <li> f - toggle fullscreen </li> + <li> r - in/out browser window </li> + <li> a - on/off always-on-top </li> +</ul> +</P> + +</body> +</html> diff --git a/jnlp-files/jogl-test-applets.html b/jnlp-files/jogl-test-applets.html index 70bf1c017..1eb3af2dd 100644 --- a/jnlp-files/jogl-test-applets.html +++ b/jnlp-files/jogl-test-applets.html @@ -93,6 +93,20 @@ See Legend below table running as a translucent Applet hanging over the page. </td> </tr> + <tr> + <td> + <a href="../../jogl/www/media/jogl-applet-moviecube01.png"> + <img src="../../jogl/www/media/jogl-applet-moviecube01-small.png" width="200" alt="Full Size"/> + </a> + </td> + <td> + <a href="jogl-applet-runner-newt-MovieCube.html">Dual</a><br/> + <a href="jogl-applet-runner-newt-MovieCube-napplet.html">NApplet</a><br/> + </td> + <td> + Movie Cube using JOGL's GLMediaPlayer. + </td> + </tr> </tbody></table> </td> 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 090b947d9..557cf28d7 100755 --- 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 @@ -69,7 +69,12 @@ public class MovieCube implements GLEventListener, GLMediaEventListener { TexCubeES2 cube=null; GLMediaPlayer mPlayer=null; URLConnection stream = null; - + + public MovieCube() throws IOException { + this(new URL("http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4").openConnection(), + -2.3f, 0f, 0f); + } + public MovieCube(URLConnection stream, float zoom0, float rotx, float roty) throws IOException { this.stream = stream; mPlayer = GLMediaPlayerFactory.create(); diff --git a/www/media/jogl-applet-moviecube01-small.png b/www/media/jogl-applet-moviecube01-small.png Binary files differnew file mode 100644 index 000000000..124c88c0a --- /dev/null +++ b/www/media/jogl-applet-moviecube01-small.png diff --git a/www/media/jogl-applet-moviecube01.png b/www/media/jogl-applet-moviecube01.png Binary files differnew file mode 100644 index 000000000..a22c560ec --- /dev/null +++ b/www/media/jogl-applet-moviecube01.png |