I added keyboard accelerator shortcuts for most menu options,

and fixed aspects of QD's QT for Java component. At the moment
there are two classes, SmartQT4JPlayer and SmartJMFPlayer, that
both extend SmartMoviePanel, an abstract class extending Panel.
If it would be better to make SmartMoviePanel an interface that
would only require minor changes.

You can switch back and forth between JMF and QT4J from the
menu bar, or you can type:

java -Dthdl.media.player=qt4j/jmf -jar QuillDriver.jar

Note that the QT4J module crashes sometimes before it can open
the video file. I'm not sure why.
This commit is contained in:
eg3p 2002-10-18 16:11:50 +00:00
parent 77ba841c6e
commit 836604a97a
3 changed files with 275 additions and 121 deletions

View file

@ -158,6 +158,7 @@ public class SmartQT4JPlayer extends SmartMoviePanel
}
public void cmd_playSegment(Integer startTime, Integer stopTime) throws SmartMoviePanelException
{
//FIXME: need to deal with null stopTime
try
{
getPlayer().setTime( startTime.intValue() );
@ -200,11 +201,21 @@ public class SmartQT4JPlayer extends SmartMoviePanel
}
public int getCurrentTime()
{
return 0;
try {
return getMovie().getTime();
} catch (StdQTException stqte) {
stqte.printStackTrace();
return -1;
}
}
public int getEndTime()
{
return 0;
try {
return getMovie().getDuration();
} catch (StdQTException stqte) {
stqte.printStackTrace();
return -1;
}
}
//helper methods - QT4J