GetMediaHandler
TheGetMediaHandlerfunction allows you to obtain a reference to a media handler component.You can use this reference to call the media handler directly. See "Video Media Handler Functions," which begins on page 2-269, and "Sound Media Handler Functions," which begins on page 2-271, for information about the functions that are supported by video and sound media handlers.
pascal MediaHandler GetMediaHandler (Media theMedia);
theMedia- Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as
NewTrackMediaandGetTrackMedia(described on page 2-138 and page 2-190, respectively).DESCRIPTION
TheGetMediaHandlerfunction returns a reference to the media's media handler. If the function could not locate the media handler, it sets this reference tonil. You can use this reference to call the media handler.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help