¡@

Home 

2014/10/15 ¤U¤È 10:11:33

iphone Programming Glossary: mpmediaitempropertytitle

How to play a song from the itunes library in iphone

http://stackoverflow.com/questions/1665119/how-to-play-a-song-from-the-itunes-library-in-iphone

everything items MPMediaItem song for song in itemsFromGenericQuery NSString songTitle song valueForProperty MPMediaItemPropertyTitle NSLog @ @ songTitle assign a playback queue containing all media items on the device myPlayer setQueueWithQuery everything..

On iPhone: Find out what song is currently playing? (in the iPod music player)

http://stackoverflow.com/questions/1917014/on-iphone-find-out-what-song-is-currently-playing-in-the-ipod-music-player

MPMediaItem song MPMusicPlayerController iPodMusicPlayer nowPlayingItem NSString title song valueForProperty MPMediaItemPropertyTitle NSString album song valueForProperty MPMediaItemPropertyAlbumTitle NSString artist song valueForProperty MPMediaItemPropertyArtist..

Is it possible to access iPhone/iPod Touch music stats through the SDK?

http://stackoverflow.com/questions/2083117/is-it-possible-to-access-iphone-ipod-touch-music-stats-through-the-sdk

albumName artistName NSArray songs album items for MPMediaItem song in songs NSString songTitle song valueForProperty MPMediaItemPropertyTitle NSLog @ t t @ songTitle System Constants ... NSString const MPMediaItemPropertyPersistentID filterable NSString const MPMediaItemPropertyMediaType.. const MPMediaItemPropertyPersistentID filterable NSString const MPMediaItemPropertyMediaType filterable NSString const MPMediaItemPropertyTitle filterable NSString const MPMediaItemPropertyAlbumTitle filterable NSString const MPMediaItemPropertyArtist filterable..

Get album artwork from MP3 file/ID3 tag

http://stackoverflow.com/questions/4907164/get-album-artwork-from-mp3-file-id3-tag

You have to use enumerateValuesForProperties here is a sample item enumerateValuesForProperties NSSet setWithObjects MPMediaItemPropertyTitle MPMediaItemPropertyAlbumTitle MPMediaItemPropertyArtist MPMediaItemPropertyArtwork nil usingBlock ^ NSString property.. MPMediaItemPropertyArtwork nil usingBlock ^ NSString property id value BOOL stop if property isEqualToString MPMediaItemPropertyTitle if value titre value else titre @ if property isEqualToString MPMediaItemPropertyArtist if value artist..

Change lock screen background audio controls text?

http://stackoverflow.com/questions/6600592/change-lock-screen-background-audio-controls-text

@ Life the Universe and Everything NSNumber numberWithInt 42 albumArt nil forKeys NSArray arrayWithObjects MPMediaItemPropertyTitle MPMediaItemPropertyPlaybackDuration MPMediaItemPropertyArtwork nil MPNowPlayingInfoCenter defaultCenter .nowPlayingInfo..

Application crashed while importing songs from Ipod library in Iphone for iOs 5.0

http://stackoverflow.com/questions/8077725/application-crashed-while-importing-songs-from-ipod-library-in-iphone-for-ios-5

exportSession.outputFileType fileType NSString fileName nil fileName NSString stringWithString item valueForProperty MPMediaItemPropertyTitle fileName fileName stringByAppendingString @ stringByAppendingString item valueForProperty MPMediaItemPropertyArtist NSArray..

How to set an title of the currently playing audio in iPhone lock screen?

http://stackoverflow.com/questions/8387262/how-to-set-an-title-of-the-currently-playing-audio-in-iphone-lock-screen