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);