Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
how to stop playback: TimeCallBack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to stop playback: TimeCallBack



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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.