/ Published in: Objective C
                    
                                        
Metadata of Playing Media
*iOS5 Only*
Use this for integration with Accessories and Apple TV
                *iOS5 Only*
Use this for integration with Accessories and Apple TV
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// iOS5 Only
- (void) setMediaInfo {
[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];
}
URL: http://www.netfilter.com.br
Comments
 Subscribe to comments
                    Subscribe to comments
                
                