Mailing Lists: Apple Mailing Lists

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

Stop movie at a given time



Hi,

I want to play a movie and stop it at a given time. The attached code works but the audio becomes very choppy when the movie is being played.

while ( myQTPlayer.getTime() <= playerStopTime ) {
myQTPlayer.setRate(1);
}
myQTPlayer.setRate(0);

This problem only occurs when I try to verify the current time by looping:

while ( myQTPlayer.getTime() .....)

Any better algorithms I should use instead? I am using QTJava 6, win2000. client-server.

Thanks!

Frank
Center for Scholarly Technology, USC
_______________________________________________
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.



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.