Mailing Lists: Apple Mailing Lists

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

MovieController won't update, why?



I am putting a QTCanvas into a Panel and adding that Panel to my main window. When I open and play a movie, the MovieController progress bar does not update! If I stop the movie, then the bar updates. It also updates, while the movie is playing, if I click and hold on the sound volume icon.

The app is a swing app; is that a problem?

My movie loading code is below, I'm running on 1.3.1, moving to 1.4.2 is not an option for the code I'm working with right now.

String theURL = new String("file://"+fileName);
DataRef urlMovie = new DataRef(theURL);
movie = Movie.fromDataRef (urlMovie, StdQTConstants4.newMovieAsyncOK | StdQTConstants.newMovieActive);
movie.prePreroll (0, 1.0f);
movie.preroll (0, 1.0f);
while (movie.maxLoadedTimeInMovie() == 0) {
movie.task (100);
}


setStartTime(new VideoPosition(0, 0));		
mc = new MovieController (movie);			
mc.setKeysEnabled (true);
myPlayer = new QTPlayer(mc);
myQTCanvas.setClient(myPlayer, true);

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

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 © 2007 Apple Inc. All rights reserved.