For versions of QuickTime prior to QuickTime 6, you need to use a specific NewMovieFrom... function for each type of data source: NewMovieFromFile for files, NewMovieFromHandle for handles, NewMovieFromScrap, and so on.
There is no general procedure for specifying a movie data source for these functions; every type of data source is a special case. Different functions require you to pass the data source in different ways. For example, to use NewMovieFromFile> you need to pass in an FSRef. This is commonly obtained by calling OpenMovieFile with an FSSpec. Windows users might first need to convert a native Windows pathname to a Mac OS FSSpec using the utility function FSMakeFSSpec, setting both the volume reference number and directory ID to 0 and passing the full pathname in place of a filename.
Details on the required format for the movie data source are provided in the documentation for the specific NewMoviers> functions.
The graphics destination for movies created using these functions is always the current graphics port for your program. For additional details, see “Setting a Graphics Destination in QuickTime 6 and Earlier.”
The QuickTime documentation is rich in code samples that use these functions. For implementation details, see the QuickTimeAPIReference for these functions:
Last updated: 2005-08-11