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: quicktime-java digest, Vol 3 #283 - 5 msgs



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.
>>>
sure. put the test into a MovieDrawingComplete method, so it executes
each time a frame is drawn. you wont burn so much cpu that way.

--
Andruid Kerne http://www.andruid.com
646-264-0023

Interfaces are the multidimensional border zones through which the
interdependent relationships of people, activities, codes, components,
and systems are constituted. Interface ecology investigates the
dynamic interactions of media, cultures, and disciplines that
flow through interfaces.

--
andruid kerne
department of computer science 979.862.3217
texas a&m university 979.847.8578 fax
college station, tx 77843-3112 http://www.andruid.com

Interfaces are the multidimensional border zones through which the
interdependent relationships of people, activities, codes, components,
and systems are constituted. Interface ecology investigates the
dynamic interactions of media, cultures, and disciplines that
flow through interfaces.
_______________________________________________
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.