Hi,
I use following code to to add movie's meta data,
when the key is kQTMetaDataCommonKeyDisplayName, it
works, but when it is kQTMetaDataCommonKeyInformation
or kQTMetaDataCommonKeyDescription, it does not show
up in the QuicktimePro's movie properties window, why?
thanks .
AC.
QTMetaDataRef theMetaData = NULL;
OSType key =
kQTMetaDataCommonKeyInformation;
OSErr err;
Movie movie;
movie = [Qmovie quickTimeMovie];
err = QTCopyMovieMetaData(movie, &theMetaData);
if (noErr == err)
{
char *Mark = "test text";
QTMetaDataAddItem(theMetaData,
kQTMetaDataStorageFormatiTunes,
kQTMetaDataKeyFormatCommon, (const UInt8 *)&key,
sizeof(key), Mark, 10, kQTMetaDataTypeUTF8, NULL);
if ([Qmovie canUpdateMovieFile])
[Qmovie updateMovieFile];
QTMetaDataRelease(theMetaData);
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden