Movie Functions
The Movie Toolbox provides a set of functions that allow your application to create, access, and convert movie files. Movie files contain data for QuickTime movies. You can also use the Movie Toolbox to load movies into memory, in preparation for working with the movie. These functions differ based on where the movie is stored.Before your application can play a movie, you must first open the file that contains the movie. Your application can use the
OpenMovieFilefunction (described on page 2-86) to open a movie file. Once you are done with the file, your application releases the file by calling theCloseMovieFilefunction. Your application can create and open a new movie file by calling theCreateMovieFilefunction. Your application can delete a movie file by calling theDeleteMovieFilefunction.You can use the
NewMoviefunction to create a new empty movie. If your application is loading a movie from an existing file, use either theNewMovieFromFilefunction or theNewMovieFromDataForkfunction. TheNewMovieFromFilefunction works with the file reference number you obtain from theOpenMovieFilefunction. TheNewMovieFromDataForkfunction works with movies stored in your document file's data fork. Your application can then use the functions described in "Saving Movies," which begins on page 2-87, to load and store movies.You can use the
ConvertFileToMovieFilefunction to specify an input file and convert it to a movie file. TheConvertMovieToFiletakes a specified movie (or a single track within that movie) and converts it into an output file.Once you are finished working with a movie, you should release the resources used by the movie by calling the
DisposeMoviefunction.
Subtopics
- NewMovieFromFile
- NewMovieFromHandle
- NewMovie
- ConvertFileToMovieFile
- ConvertMovieToFile
- DisposeMovie
- CreateMovieFile
- OpenMovieFile
- CloseMovieFile
- DeleteMovieFile