Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Getting a Movie in Older Versions of QuickTime

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.

Important: These functions are now deprecated and should not be used for new applications.

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:



< Previous PageNext Page > Hide TOC


Last updated: 2005-08-11




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice