¡@

Home 

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

iphone Programming Glossary: mpmusicplayer

Getting wrong playback state in MP Music Player Controller in ios 5

http://stackoverflow.com/questions/10118726/getting-wrong-playback-state-in-mp-music-player-controller-in-ios-5

is always called when my application becomes active. The issue is that when I re enter my app the playback state of MPMusicPlayer is still set to MPMusicPlaybackStatePlaying even when music is stopped paused. I filed a bug report for this about a year..

iPhone AVAudioPlayer stopping background music

http://stackoverflow.com/questions/1672602/iphone-avaudioplayer-stopping-background-music

iphone audio music avaudioplayer share improve this question You can't run AVAudioPlayer and the iPod player or MPMusicPlayer or MPMoviePlayer at the same time without doing a bit more work. If you want easy then use Audio Toolbox's System Sounds...

How can you play music from the iPod app while still receiving remote control events in your app?

http://stackoverflow.com/questions/3191580/how-can-you-play-music-from-the-ipod-app-while-still-receiving-remote-control-ev

either iPod music playing or headphone events but not both simultaneously. Here's what I know so far... If you use the MPMusicPlayer you can easily have programmatic access to the entire music library. However it not your app receives the remote notifications.. using an instance of the AVAudioPlayer to get remote events say with a blank sound file then simultaneously use the MPMusicPlayer class to play iPod music you have remote control access until you actually start iPod playback at which time you lose it.. doesn't get deactivated but you still lose remote control capability once the iPod starts playing. In short whenever MPMusicPlayer is playing I can't seem to get remote events and I don't know of any other way to play content from the iPod's library other..

Using MPMediaItems with AVAudioPlayer

http://stackoverflow.com/questions/5222464/using-mpmediaitems-with-avaudioplayer

and then load them into an AVAudioPlayer object iphone objective c share improve this question If MPMusicPlayerController doesn't meet your needs you can copy the audio to your local bundle so you can use AVAudioPlayer . EDIT You basically.. url item valueForProperty MPMediaItemPropertyAssetURL self dismissModalViewControllerAnimated YES Play the item using MPMusicPlayer MPMusicPlayerController appMusicPlayer MPMusicPlayerController applicationMusicPlayer appMusicPlayer setQueueWithItemCollection.. MPMediaItemPropertyAssetURL self dismissModalViewControllerAnimated YES Play the item using MPMusicPlayer MPMusicPlayerController appMusicPlayer MPMusicPlayerController applicationMusicPlayer appMusicPlayer setQueueWithItemCollection collection..