mirror of https://github.com/FreeCol/freecol.git
Use unmodified cortado for the opening video.
This commit is contained in:
parent
a78e9958ac
commit
2275df008f
|
@ -26,7 +26,7 @@
|
|||
<property name="test" value="AllTests"/>
|
||||
<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="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="woodstox.jar" value="jars/woodstox-core-lgpl-4.0.9.jar"/>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -31,7 +31,8 @@ import javax.swing.border.Border;
|
|||
import net.sf.freecol.client.gui.panel.FreeColImageBorder;
|
||||
|
||||
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.
|
||||
|
@ -71,17 +72,18 @@ public class VideoComponent extends JPanel {
|
|||
applet.setParam ("showStatus", "hide");
|
||||
applet.init();
|
||||
|
||||
applet.setStopListener(new StopListener() {
|
||||
public void stopped() {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
for (VideoListener sl : videoListeners) {
|
||||
sl.stopped();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
// Disable the feature that seems to be missing from the stock Cortado
|
||||
//applet.setStopListener(new StopListener() {
|
||||
// public void stopped() {
|
||||
// SwingUtilities.invokeLater(new Runnable() {
|
||||
// public void run() {
|
||||
// for (VideoListener sl : videoListeners) {
|
||||
// sl.stopped();
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//});
|
||||
|
||||
setLayout(null);
|
||||
add(applet);
|
||||
|
|
Loading…
Reference in New Issue