? simple
? examples/MediaPlayer/build
? examples/MediaPlayer/build.properties
? examples/MediaPlayer/build.properties.sample
? test/build
M examples/MediaPlayer/JMPlayer.java
M examples/MediaPlayer/build.xml
M examples/MediaPlayer/samples/test.html
M mozilla/nppluglet.cpp
M mozilla/nppluglet.h


git-svn-id: svn://10.0.0.236/trunk@213989 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2006-10-23 05:18:19 +00:00
parent 968f64f58b
commit e144e050f9
6 changed files with 154 additions and 25 deletions

View File

@@ -18,7 +18,14 @@ public class JMPlayer implements PlugletFactory {
public JMPlayer() {
}
public Pluglet createPluglet(String mimeType) {
return new Player();
Pluglet player = null;
try {
player = new Player();
}
catch (Throwable e) {
System.out.println("debug: edburns: " + e.getMessage());
}
return player;
}
public void initialize(PlugletManager manager) {
}

View File

@@ -0,0 +1,3 @@
jmf.home=D:\\Files_2k\\JMF2.1.1e
jmf.jar=${jmf.home}/lib/jmf.jar
sound.jar=${jmf.home}/lib/sound.jar

View File

@@ -59,6 +59,7 @@
<!-- Construct compile classpath -->
<path id="compile.classpath">
<pathelement location="${build.home}"/>
<pathelement location="${jmf.jar}"/>
</path>
<target name="prepare">
@@ -100,10 +101,10 @@
<jar jarfile="${basedir}/build/mediaplayer.jar">
<manifest>
<attribute name="MIMEDescription" value="video/avi"/>
<attribute name="Pluglet-Class" value="test"/>
<attribute name="Pluglet-Class" value="JMPlayer"/>
</manifest>
<fileset dir="${basedir}/build">
<include name="*.class" />
<include name="**/*.*" />
</fileset>
</jar>

View File

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