quicktime-java

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

Re: how to stop playback: TimeCallBack Alex Shaykevich Tue Sep 02 20:00:55 2008

TimeCallback behaviour has always been a little sketchy.  You're much better 
off writing your own Timer/SwingTimer to poll for movie times and respond 
accodingly.

--Alex

--- On Tue, 9/2/08, Irene Zhuravlova <[EMAIL PROTECTED]> wrote:
From: Irene Zhuravlova <[EMAIL PROTECTED]>
Subject: how to stop playback: TimeCallBack
To: [EMAIL PROTECTED]
Date: Tuesday, September 2, 2008, 7:23 PM

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/ashayk1%40yahoo.com

This email sent to [EMAIL PROTECTED]



      
 _______________________________________________
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]