diff --git a/mozilla/java/plugins/examples/index.html b/mozilla/java/plugins/examples/index.html index c08074f985d..a0640aa3fe5 100755 --- a/mozilla/java/plugins/examples/index.html +++ b/mozilla/java/plugins/examples/index.html @@ -12,13 +12,25 @@
  • Simple Pluglet

  • +
  • Java Media Framework Plugin Examples

    + + + +
  • + +
    -Last modified: Fri Mar 16 14:13:01 Eastern Standard Time 2007 +Last modified: Mon Mar 19 23:29:38 Eastern Standard Time 2007 diff --git a/mozilla/java/plugins/examples/MediaPlayer/JMPlayer.java b/mozilla/java/plugins/examples/jmfplayer/src/main/java/jmfplayer/JMFPlayer.java old mode 100644 new mode 100755 similarity index 92% rename from mozilla/java/plugins/examples/MediaPlayer/JMPlayer.java rename to mozilla/java/plugins/examples/jmfplayer/src/main/java/jmfplayer/JMFPlayer.java index eb857df5cb7..b2fd07565d4 --- a/mozilla/java/plugins/examples/MediaPlayer/JMPlayer.java +++ b/mozilla/java/plugins/examples/jmfplayer/src/main/java/jmfplayer/JMFPlayer.java @@ -1,3 +1,5 @@ +package jmfplayer; + import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Frame; @@ -19,8 +21,8 @@ import org.mozilla.pluglet.mozilla.PlugletStreamInfo; import org.mozilla.pluglet.mozilla.PlugletTagInfo2; -public class JMPlayer implements PlugletFactory { - public JMPlayer() { +public class JMFPlayer implements PlugletFactory { + public JMFPlayer() { } public Pluglet createPluglet(String mimeType) { Pluglet player = null; @@ -88,7 +90,7 @@ class Player implements Pluglet, ControllerListener { public void destroy() { } public PlugletStreamListener newStream() { - JMPlayerStreamListener listener = new JMPlayerStreamListener(); + JMFPlayerStreamListener listener = new JMFPlayerStreamListener(); listener.setPlayer(this); return listener; } @@ -105,10 +107,10 @@ class Player implements Pluglet, ControllerListener { } } -class JMPlayerStreamListener implements PlugletStreamListener { +class JMFPlayerStreamListener implements PlugletStreamListener { Player jmp; - public JMPlayerStreamListener() { + public JMFPlayerStreamListener() { } public void onStartBinding(PlugletStreamInfo streamInfo) { if(!jmp.playFile(streamInfo.getURL())) { diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/test.html b/mozilla/java/plugins/examples/jmfplayer/src/main/web/test01.html old mode 100644 new mode 100755 similarity index 100% rename from mozilla/java/plugins/examples/MediaPlayer/samples/test.html rename to mozilla/java/plugins/examples/jmfplayer/src/main/web/test01.html diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/tilego3.avi b/mozilla/java/plugins/examples/jmfplayer/src/main/web/tilego3.avi old mode 100644 new mode 100755 similarity index 100% rename from mozilla/java/plugins/examples/MediaPlayer/samples/tilego3.avi rename to mozilla/java/plugins/examples/jmfplayer/src/main/web/tilego3.avi diff --git a/mozilla/java/plugins/netbeans/build.xml b/mozilla/java/plugins/netbeans/build.xml index ea5cf358c19..f6070085ad2 100755 --- a/mozilla/java/plugins/netbeans/build.xml +++ b/mozilla/java/plugins/netbeans/build.xml @@ -142,6 +142,7 @@ + @@ -153,19 +154,22 @@ Conditions for compilation have not been met. + Have you verified that the property browser.bin.dir has been set -to the binary directory of the host browser in the webclient.properties +to the binary directory of the host browser in the pluglet.properties file? The current value of this property is: ${browser.bin.dir} and this directory must contain the file ${so.prefix}xpcom.${so.extension}. + +Have you verified that the property jdkhome.nospaces has been set +to the installation of the JDK, in the pluglet.properties file, +and that the path to this directory +has no spaces? The current value of this property is: +${jdkhome.nospaces}. - - - - @@ -183,7 +187,7 @@ ${so.prefix}xpcom.${so.extension}. - + @@ -197,23 +201,17 @@ ${so.prefix}xpcom.${so.extension}. failonerror="yes"> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + file="${build.dir}/jmfplayer.jar" /> diff --git a/mozilla/java/plugins/netbeans/nbproject/build-impl.xml b/mozilla/java/plugins/netbeans/nbproject/build-impl.xml index c28e5d7ad52..c3b36c6f9d9 100755 --- a/mozilla/java/plugins/netbeans/nbproject/build-impl.xml +++ b/mozilla/java/plugins/netbeans/nbproject/build-impl.xml @@ -67,6 +67,7 @@ is divided into following sections: + @@ -96,6 +97,7 @@ is divided into following sections: Must set src.EmptyMainClass.dir Must set src.java.dir + Must set src.java2.dir Must set build.dir Must set dist.dir Must set build.classes.dir @@ -116,7 +118,7 @@ is divided into following sections: - + @@ -243,6 +245,7 @@ is divided into following sections: + @@ -394,11 +397,14 @@ is divided into following sections: + + + diff --git a/mozilla/java/plugins/netbeans/nbproject/genfiles.properties b/mozilla/java/plugins/netbeans/nbproject/genfiles.properties index 2ce4d11c982..b5984e6a63f 100755 --- a/mozilla/java/plugins/netbeans/nbproject/genfiles.properties +++ b/mozilla/java/plugins/netbeans/nbproject/genfiles.properties @@ -3,6 +3,6 @@ build.xml.script.CRC32=4cc13411 build.xml.stylesheet.CRC32=240b97a2 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=59b0de98 -nbproject/build-impl.xml.script.CRC32=5b6a971b +nbproject/build-impl.xml.data.CRC32=88453c61 +nbproject/build-impl.xml.script.CRC32=cc42387b nbproject/build-impl.xml.stylesheet.CRC32=20b9345e diff --git a/mozilla/java/plugins/netbeans/nbproject/project.properties b/mozilla/java/plugins/netbeans/nbproject/project.properties index 5214aefcc7f..65968eb6174 100755 --- a/mozilla/java/plugins/netbeans/nbproject/project.properties +++ b/mozilla/java/plugins/netbeans/nbproject/project.properties @@ -18,6 +18,8 @@ dist.jar=${dist.dir}/pluglet.jar dist.javadoc.dir=${dist.dir}/javadoc file.reference.examples-EmptyMainClass=../examples/EmptyMainClass file.reference.main-java=../examples/simple/src/main/java +file.reference.main-java-1=../examples/jmf-player/src/main/java +file.reference.main-java-2=../examples/jmfplayer/src/main/java file.reference.pluglet-1_1_a1.jar=../lib/pluglet-1_1_a1.jar jar.compress=false javac.classpath=\ @@ -59,3 +61,4 @@ run.test.classpath=\ ${build.test.classes.dir} src.EmptyMainClass.dir=${file.reference.examples-EmptyMainClass} src.java.dir=${file.reference.main-java} +src.java2.dir=${file.reference.main-java-2} diff --git a/mozilla/java/plugins/netbeans/nbproject/project.xml b/mozilla/java/plugins/netbeans/nbproject/project.xml index e2a6729e1ee..838ebc5fc8d 100755 --- a/mozilla/java/plugins/netbeans/nbproject/project.xml +++ b/mozilla/java/plugins/netbeans/nbproject/project.xml @@ -8,6 +8,7 @@ + diff --git a/mozilla/java/plugins/netbeans/pluglet.properties b/mozilla/java/plugins/netbeans/pluglet.properties index cc654a264d4..6cc9955a1a6 100755 --- a/mozilla/java/plugins/netbeans/pluglet.properties +++ b/mozilla/java/plugins/netbeans/pluglet.properties @@ -1,5 +1,7 @@ -bin.artifacts.pattern=${so.prefix}plugletjni.${so.extension},components/${so.prefix}pluglet.${so.extension},components/pluglet.xpt,plugins/np${so.prefix}pluglet.${so.extension},plugins/SimplePluglet.jar +bin.artifacts.pattern=${so.prefix}plugletjni.${so.extension},components/${so.prefix}pluglet.${so.extension},components/pluglet.xpt,plugins/np${so.prefix}pluglet.${so.extension},plugins/SimplePluglet.jar,plugins/jmfplayer.jar #debug.jvm.args=-Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y #Make this point to the bin directory of your XULRUNNER installation browser.bin.dir=C:\\Projects\\chaff\\pluglet-1-1-alpha-1\\ff1509 +#Make this point at your JDKHOME without spaces +jdkhome.nospaces=C:\\PROGRA~1\\Java\\jdk1.6.0 diff --git a/mozilla/java/plugins/release/build.xml b/mozilla/java/plugins/release/build.xml index 248a34d0de5..5546093a58a 100755 --- a/mozilla/java/plugins/release/build.xml +++ b/mozilla/java/plugins/release/build.xml @@ -53,7 +53,6 @@ - @@ -62,13 +61,34 @@ + + + + + + + + + + + + + + + + + + + + @@ -139,6 +159,9 @@ + + @@ -156,6 +179,8 @@ +