Movies and Your Event Loop
In order for your movies to play, your application must grant time to the Movie Toolbox. You do this by calling theMoviesTaskfunction from your main event loop. TheMoviesTaskfunction causes the Movie Toolbox to service all your active movies. You should call this function regularly so that your movie can play smoothly. You can use theUpdateMoviefunction to force your movie to be redrawn after it has been uncovered.You may want your application to take a particular action when a movie is done playing. The Movie Toolbox provides the
IsMovieDonefunction, which allows you to determine whether a movie is done playing. The Movie Toolbox also provides more sophisticated callback mechanisms, which are discussed in "Time Base Functions" beginning on page 2-296.The Movie Toolbox provides two functions that allow your application to determine whether a specified point lies in either a movie or a track. Use the
PtInMoviefunction with movies; use thePtInTrackfunction with tracks.Your application can retrieve some status information about movies and tracks. Use the
GetMovieStatusfunction to retrieve movie status; use theGetTrackStatusfunction to get track status.
Subtopics
- MoviesTask
- IsMovieDone
- UpdateMovie
- PtInMovie
- PtInTrack
- GetMovieStatus
- GetTrackStatus
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help