Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: kQTMetaDataCommonKeyInformation not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kQTMetaDataCommonKeyInformation not working?



Angelo,

There is no mapping from the kQTMetaDataCommonKeyInformation or kQTMetaDataCommonKeyDescription keys to any iTunes metadata keys. In the case of kQTMetaDataCommonKeyDisplayName, it is mapped to the track name. For the information to show up, you need to add them using the kQTMetaDataStorageFormatQuickTime storage format.

Thai-Wey
QuickTime Engineering

On May 15, 2006, at 8:12 AM, Angelo Chen wrote:

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

_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >kQTMetaDataCommonKeyInformation not working? (From: Angelo Chen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.