Revision: 54425
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 23, 2011 04:12 by ppaulojr
Initial Code
// iOS5 Only - (void) setMediaInfo { NSMutableDictionary * dict = [[NSMutableDictionary alloc] init]; NSString * imName = @"imagetest.png"; // Artwork image [dict setObject:NSLocalizedString(@"My Music", @"") forKey:MPMediaItemPropertyTitle]; [dict setObject:NSLocalizedString(@"Myself Artist", @"") forKey:MPMediaItemPropertyArtist]; MPMediaItemArtwork * mArt = [[MPMediaItemArtwork alloc] initWithImage:[UIImage imageNamed:imName]]; [dict setObject:mArt forKey:MPMediaItemPropertyArtwork]; [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nil; [[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:dict]; [dict release]; }
Initial URL
http://www.netfilter.com.br
Initial Description
Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
Initial Title
AVAudioPlayer Metadata for iTunes integration
Initial Tags
iphone
Initial Language
Objective C