Important: The information in this document is obsolete and should not be used for new development.
QuickTime 6 introduces new UserData APIs that can be useful in copying information from one UserData container to another. The operation performed is controlled by a parameter to the APIs that describes one of two different copy rules or dispositions. While there is a routine to copy from one UserData container to another, there are also convenience APIs to copy metadata between the UserData containers at the Movie, Track and Media levels.
The currently supported copy rules are:
kQTCopyUserDataReplace
Delete all user data items from the destination UserData container
and then add all source items to the destination.
kQTCopyUserDataMerge
Append all source items from the source UserData container to the
destination UserData container. Does not delete items from the destination
container.
Performs copying from the source Movie’s UserData to the destination Movie UserData.
OSErr CopyMovieUserData (Movie srcMovie, Movie dstMovie, OSType copyRule);
Movie containing source UserData.
Movie containing destination UserData
Specifies one of two different approaches to copying source metadata items to the destination container. The supported rules are:
kQTCopyUserDataReplace |
kQTCopyUserDataMerge |
This routine performs copying from the source Movie’s UserData to the destination Movie UserData.
CopyMovieUserData is
equivalent to the following:
CopyUserData(GetMovieUserData(srcMovie), |
GetMovieUserData(dstMovie), |
copyRule); |
Introduced in QuickTime 6.
Movies.h
C interface file: Movies.h
Performs copying from the source Track’s UserData to the destination Track’s UserData.
OSErr CopyTrackUserData (Track srcTrack, Track dstTrack, OSType copyRule);
Track containing source UserData.
Track containing destination UserData.
Specifies one of two different approaches to copying source metadata items to the destination container. The supported rules are:
kQTCopyUserDataReplace |
kQTCopyUserDataMerge |
This routine performs copying from the source Track’s UserData to the destination Track’s UserData.
Introduced in QuickTime 6.
Movies.h
C interface file: Movies.h
Performs copying from the source Media’s UserData to the destination Media’s UserData.
OSErr CopyMediaUserData (Media srcMedia, Media dstMedia, OSType copyRule);
Media containing source UserData.
Media containing destination UserData.
Specifies one of two different approaches to copying source metadata items to the destination container. The supported rules are:
kQTCopyUserDataReplace |
kQTCopyUserDataMerge |
This routine performs copying from the source Media’s UserData to the destination Media’s UserData.
CopyMediaUserData is
equivalent to the following:
CopyUserData(GetMediaUserData(srcMedia), |
GetMediaUserData(dstMedia), |
copyRule); |
Introduced in QuickTime 6.
Movies.h
C interface file: Movies.h
Copies metadata items from the source UserData container to the destination UserData container based on the rule specified.
OSErr CopyUserData (UserData srcUserData, UserData dstUserData, OSType copyRule);
UserData container from which to copy metadata items.
UserData container to which to copy the metadata items.
Specifies one of two different approaches to copying source metadata items to the destination container. The supported rules are:
kQTCopyUserDataReplace |
kQTCopyUserDataMerge |
CopyUserData copies
metadata items from the source UserData container to the destination UserData
container based upon the rule specified. It can perform either total
replacement of all destination items or merge items from the source
into the destination container.
The API detects if the source and destination UserData containers are the same and does nothing in that case.
Introduced in QuickTime 6.
Movies.h
C interface file: Movies.h
Last updated: 2002-07-01