This checkin makes it so the JavaMediaPlayer demo builds on win32.

It also adds some sample content.
This commit is contained in:
edburns%acm.org 2001-06-10 02:54:49 +00:00
Родитель 7987d61cfd
Коммит da794fbaa1
7 изменённых файлов: 94 добавлений и 10 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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)
DEPTH=..\..\..\..
include <$(DEPTH)\config\config.mak>
include <jmf_defs.mak>
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

Просмотреть файл

@ -0,0 +1,19 @@
<HTML>
<HEAD>
<TITLE>Java Media Player Demos</TITLE>
</HEAD>
<BODY>
<H3>Java Media Player Demos</H3>
<UL>
<LI><P><A HREF="test.html">Lego Battlebot 0</A></P>
</LI>
<LI><P><A HREF="test1.html">Lego Battlebot 1</A></P>
</LI>
</UL>
</BODY>
</HTML>

Просмотреть файл

@ -0,0 +1,5 @@
<html>
<body>
<EMBED type="video/avi" name=JMPlayer SRC="tilego3.avi" width=400 height=400>
</body>
</html>

Просмотреть файл

@ -0,0 +1,5 @@
<html>
<body>
<EMBED type="video/avi" name=JMPlayer SRC="tilego2.avi" width=400 height=400>
</body>
</html>

Двоичные данные
java/plugins/examples/MediaPlayer/samples/tilego2.avi Normal file

Двоичный файл не отображается.

Просмотреть файл