Use unmodified cortado for the opening video.

This commit is contained in:
Mike Pope 2010-12-09 08:25:54 +00:00
parent a78e9958ac
commit 2275df008f
4 changed files with 15 additions and 13 deletions

View File

@ -26,7 +26,7 @@
<property name="test" value="AllTests"/> <property name="test" value="AllTests"/>
<property name="miglayout.jar" value="jars/miglayout-3.7.3.1-swing.jar"/> <property name="miglayout.jar" value="jars/miglayout-3.7.3.1-swing.jar"/>
<property name="cli.jar" value="jars/commons-cli-1.1.jar"/> <property name="cli.jar" value="jars/commons-cli-1.1.jar"/>
<property name="cortado.jar" value="jars/cortado-fc-1.0.jar"/> <property name="cortado.jar" value="jars/cortado-0.6.0.jar"/>
<!-- <!--
<property name="stax.jar" value="jars/stax2-api-3.0.3.jar"/> <property name="stax.jar" value="jars/stax2-api-3.0.3.jar"/>
<property name="woodstox.jar" value="jars/woodstox-core-lgpl-4.0.9.jar"/> <property name="woodstox.jar" value="jars/woodstox-core-lgpl-4.0.9.jar"/>

BIN
jars/cortado-0.6.0.jar Normal file

Binary file not shown.

Binary file not shown.

View File

@ -31,7 +31,8 @@ import javax.swing.border.Border;
import net.sf.freecol.client.gui.panel.FreeColImageBorder; import net.sf.freecol.client.gui.panel.FreeColImageBorder;
import com.fluendo.player.Cortado; import com.fluendo.player.Cortado;
import com.fluendo.player.StopListener; // Disable the feature that seems to be missing from the stock Cortado
// import com.fluendo.player.StopListener;
/** /**
* A component for playing video. * A component for playing video.
@ -71,17 +72,18 @@ public class VideoComponent extends JPanel {
applet.setParam ("showStatus", "hide"); applet.setParam ("showStatus", "hide");
applet.init(); applet.init();
applet.setStopListener(new StopListener() { // Disable the feature that seems to be missing from the stock Cortado
public void stopped() { //applet.setStopListener(new StopListener() {
SwingUtilities.invokeLater(new Runnable() { // public void stopped() {
public void run() { // SwingUtilities.invokeLater(new Runnable() {
for (VideoListener sl : videoListeners) { // public void run() {
sl.stopped(); // for (VideoListener sl : videoListeners) {
} // sl.stopped();
} // }
}); // }
} // });
}); // }
//});
setLayout(null); setLayout(null);
add(applet); add(applet);