MediaHasCharacteristic
The Movie Toolbox calls theMediaHasCharacteristicfunction with a specified characteristic to allow tracks to be identified by various attributes.
pascal ComponentResult MediaHasCharacteristic (ComponentInstance ci, OSType characteristic, Boolean *hasIt);
ci- Identifies the Movie Toolbox's connection to your derived media handler.
characteristic- Contains a constant that specifies the attribute of a track. Examples of characteristics that are currently defined are the Movie Toolbox constants
VisualMediaCharacteristicandAudioMediaCharacteristic.hasIt- Contains a pointer to a Boolean value that specifies whether the track has the attribute specified in the characteristic parameter. Set this value to
trueif the attribute applies to your media handler; otherwise, set this value tofalse.DESCRIPTION
The Movie Toolbox might request the search of all tracks with audio data. For example, to find out if a track has a given attribute, the Movie Toolbox queries the media handler for each track by callingMediaHasCharacteristicwith a particular constant specified in thecharacteristicparameter. If your media handler does not recognize a characteristic, return a value offalse.You should implement this function for any media handler that has characteristics in addition to spatial ones. If you have set the
handlerHasSpatialcapabilities flag, the base media handler automatically handles theVisualMediaCharacteristicconstant for you.RESULT CODES
Any Component Manager result code
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help