quicktime-java

[Prev] Thread [Next]  |  [Prev] Date [Next]

how to stop playback: TimeCallBack Irene Zhuravlova Tue Sep 02 20:00:39 2008

Having some problems with stopping playing movie at given movie time.
Movie stops at different movie times, latter than expected.
Video file is in MPEG4 format, but I had similar problems with formats as well.
Bellow is the java code I am executing.

All suggestions are highly appreciated.

public class StopPlaybackCallBack extends TimeCallBack {
   private QTMultiMovieController contr = null;

   public StopPlaybackCallBack(QTMultiMovieController contr, int time)
      throws QTException {
      super(
         contr.getMasterMovie().getTimeBase(),
         contr.getMasterMovie().getTimeScale(),
         time,
         StdQTConstants.triggerTimeEither);

      this.contr = contr;

      callMeWhen();
   }

   public void execute() {
      try {             
         contr.stop();
      } catch (Exception ex) {
         ex.printStackTrace();
      }
   }
}
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]