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@hidden> wrote:
From: Irene Zhuravlova <email@hidden> Subject: how to stop playback: TimeCallBack To: email@hidden 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@hidden) Help/Unsubscribe/Update your
_______________________________________________
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.
|