Mailing Lists: Apple Mailing Lists

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

[play] movie at a given time



Is there a QuickTime Java sample that can start me out with code that plays a movie from a DVD or otherwise? Have a quick little app to do and I'm considering doing it in Java instead of C++ which I normally use. Need to look at the code layout and interface with QT to make up my mind.

--Perry

On Wednesday, December 11, 2002, at 07:11 PM, Frank Liao wrote:

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