try {
if (e.getSource() == revButton) {
TimeInfo ti =
visualTrack.getNextInterestingTime (
StdQTConstants.nextTimeMediaSample,
theMovie.getTime(),
-1);
theMovie.setTime (new TimeRecord (theMovie.getTimeScale(),
ti.time));
}
else if (e.getSource() == stopButton)
theMovie.stop();
else if (e.getSource() == startButton)
theMovie.start();
else if (e.getSource() == fwdButton) {
TimeInfo ti =
visualTrack.getNextInterestingTime (
StdQTConstants.nextTimeMediaSample,
theMovie.getTime(),
1);
theMovie.setTime (new TimeRecord (theMovie.getTimeScale(),
ti.time));
}
} catch (QTException qte) {
qte.printStackTrace();
}