GetMediaDuration
TheGetMediaDurationfunction returns the duration of a media.
pascal TimeValue GetMediaDuration (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
TheGetMediaDurationfunction returns a time value. This time value indicates the media's duration, and it is expressed in the time scale of the media.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help