diff --git a/mozilla/java/plugins/examples/MediaPlayer/jmf_defs.mak b/mozilla/java/plugins/examples/MediaPlayer/jmf_defs.mak new file mode 100644 index 00000000000..d9db3dcce4c --- /dev/null +++ b/mozilla/java/plugins/examples/MediaPlayer/jmf_defs.mak @@ -0,0 +1,21 @@ +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Sun Microsystems, +# Inc. Portions created by Sun are +# Copyright (C) 1999 Sun Microsystems, Inc. All +# Rights Reserved. +# +# Contributor(s): + +JMF_CLASSPATH=$(JMFHOME)\lib\customizer.jar;$(JMFHOME)\lib\jmf.jar;$(JMFHOME)\lib\mediaplayer.jar;$(JMFHOME)\lib\multiplayer.jar diff --git a/mozilla/java/plugins/examples/MediaPlayer/makefile.win b/mozilla/java/plugins/examples/MediaPlayer/makefile.win index a4e71cad6ce..0c40d46ae13 100644 --- a/mozilla/java/plugins/examples/MediaPlayer/makefile.win +++ b/mozilla/java/plugins/examples/MediaPlayer/makefile.win @@ -18,14 +18,48 @@ # # Contributor(s): -.SUFFIXES: .java .class -.java.class: - $(JDKHOME)\bin\javac -classpath "../../classes;$(CLASSPATH)" $< -default: JMPlayer.jar -JMPlayer.jar: JMPlayer.class manifest - $(JDKHOME)\bin\jar cvfm JMPlayer.jar manifest *.class +JAVA_OR_NSJVM=1 +NO_CAFE=1 -clobber: - -del *.class *.jar -export: JMPlayer.jar - copy *.jar $(PLUGLET) \ No newline at end of file +DEPTH=..\..\..\.. + +include <$(DEPTH)\config\config.mak> +include + +JAR_JMP_CLASSES = . + +!ifdef JAVA_OR_NSJVM +JDIRS = $(JAR_JMP_CLASSES) +!endif + +JAVAC_PROG=$(JDKHOME)\bin\javac +JAVAC_FLAGS=-classpath $(CLASSPATH);$(JAVA_DESTPATH);$(JMF_CLASSPATH) -d $(JAVA_DESTPATH) + +include <$(DEPTH)\config\javarules.mak> +include <$(DEPTH)\config\rules.mak> + +clean:: + del $(DEPTH)\dist\classes\*Player*.* + +!ifdef CLASSPATH +JAVAC_CLASSPATH=$(JAVAC_CLASSPATH);$(CLASSPATH) +!endif + +install:: manifest buildRun + copy manifest $(DEPTH)\dist\classes + cd $(DEPTH)\dist\classes + $(JDKHOME)\bin\jar cvfm JMPlayer.jar manifest *Player*.* + del manifest + cd $(MOZ_SRC)\mozilla\java\plugins\examples\MediaPlayer + copy $(DEPTH)\dist\classes\JMPlayer.jar $(DIST)\bin\plugins + del $(DEPTH)\dist\classes\JMPlayer.jar + +buildRun: + @echo +++ Creating runJMP.bat. Use this to run the browser. + rm -f runJMP.bat + @echo set CLASSPATH=$(JMF_CLASSPATH);$(CLASSPATH);$(JAVA_DESTPATH) >> runJMP.bat +!ifdef MOZ_DEBUG + @echo $(MOZ_SRC)\mozilla\dist\win32_d.obj\bin\mozilla "file:///$(MOZ_SRC)/mozilla/java/plugins/examples/MediaPlayer/samples/samples.html" >> runJMP.bat +!else + @echo $(MOZ_SRC)\mozilla\dist\win32_o.obj\bin\mozilla "file:///$(MOZ_SRC)/mozilla/java/plugins/examples/MediaPlayer/samples/samples.html" >> runJMP.bat +!endif diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/samples.html b/mozilla/java/plugins/examples/MediaPlayer/samples/samples.html new file mode 100644 index 00000000000..7a6579f180e --- /dev/null +++ b/mozilla/java/plugins/examples/MediaPlayer/samples/samples.html @@ -0,0 +1,19 @@ + + +Java Media Player Demos + + + +

Java Media Player Demos

+ + + + + diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/test.html b/mozilla/java/plugins/examples/MediaPlayer/samples/test.html new file mode 100644 index 00000000000..5a351abf49a --- /dev/null +++ b/mozilla/java/plugins/examples/MediaPlayer/samples/test.html @@ -0,0 +1,5 @@ + + + + + diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/test1.html b/mozilla/java/plugins/examples/MediaPlayer/samples/test1.html new file mode 100644 index 00000000000..39e8d9d5c18 --- /dev/null +++ b/mozilla/java/plugins/examples/MediaPlayer/samples/test1.html @@ -0,0 +1,5 @@ + + + + + diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/tilego2.avi b/mozilla/java/plugins/examples/MediaPlayer/samples/tilego2.avi new file mode 100644 index 00000000000..1d087f7ee2e Binary files /dev/null and b/mozilla/java/plugins/examples/MediaPlayer/samples/tilego2.avi differ diff --git a/mozilla/java/plugins/examples/MediaPlayer/samples/tilego3.avi b/mozilla/java/plugins/examples/MediaPlayer/samples/tilego3.avi new file mode 100644 index 00000000000..108cd67d991 Binary files /dev/null and b/mozilla/java/plugins/examples/MediaPlayer/samples/tilego3.avi differ