Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stop movie at a given time



I want to play a movie and stop it at a given time.

Use a TimeCallBack. Roughly (I'm not bothering with exceptions here):

TimeBase timeBase = myQTPlayer.getTimeBase();
int timeScale = myQTPlayer.getTimeScale();
int givenTime = /* The time you are interested in */

// Create the call back and define what it does.
//
TimeCallBack aCallBack = new TimeCallBack (timeBase, timeScale, givenTime, StdQTConstants.triggerTimeFwd) {
public void execute() {
myQTPlayer.setRate (0);
}
};

// Schedule the callback.
//
aCallBack.callMeWhen();

...



--
;;;;joseph.

'Ich bin ein Faxenmacher!'
- J. D. Klaun -
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.

References: 
 >Stop movie at a given time (From: Frank Liao <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.