help me pick the right iPhone audio class - MPMoviePlayer vs AVAudioPlayer vs MPMusicPlayer - iphone

Does anyone know of a good tutorial on the distinction between the MPMoviePlayer vs AVAudioPlayer vs MPMusicPlayer?
I want to play audio from an mp3 file available at an external URL.
Ideally it is played in an iPod-like audio view. I toyed with MPMoviePlayer but it appears to be more suitable for video, as when audio starts a "movie playing" message displays, the controls disappear and a white quicktime splash page displays.
I would like the standard ipod audio controls to display all the time, and to customize the image behind them.

Here's a great little group of articles from Ray Wenderlich. Not specifically what you're after but might come in handy.
Audio 101 for iPhone Developers: Playing Audio Programmatically
Audio 101 for iPhone Developers: File and Data Formats
Audio 101 for iPhone Developers: Converting and Recording

Related

play audio with controls in iOS

I'm building an App that plays a mp3 file (hosted on http://<somewhere>/<audio>.mp3) while the user is watching some changing labels (think about a lyrics app, which write the lyrics synchronised with the song).
In the bottom side of the screen I'd like to show the audio controls (play/pause, ff, rew), and a bar for indicating the downloaded part of the file and the playing point.
How is the easiest way to do it? I've already tried with AVAudioPlayer, AVplayer and MPMoviePlayerController, but none of them solved my problem.
You can use MPVolumeView Class.Read the documentation here http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPVolumeView_Class/Reference/Reference.html

Replay option not displaying youtube video in UIWebView?

Currently i am trying to play one youtube video in my application UIWebView. On first time playing, the video is playing perfectly and i can able to see and listen both video & audio, but when the video played completely and i select replay option present in video screen,the video is not displaying anything(its just displaying black screen) but i can able to hear audio.
Where i am going wrong, How to fix this problem ?
Tools used : XCode: 4.3.2, iOS :5.1

Graphical Audio player in iOS

Is there a library or built in graphical player to represent a playing audio file in iOS.
I dont want a full screen player, but a small inline player that can be embedded into a UIView.
Does this exist in iOS?
Apple has a good example of this, avTouch. I have successfully adapted parts of their code to display audio levels in the past.
avTouch

Play video's audio track when enter background?

I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background.
So, is there any way to do that? There are some apps have this feature, and they seems just use the mpmovieplayer, is it work by detach the video layer of mpmovieplayer?
Thanks for your answer!
You'll need to have separate audio file and video file for this. Play both when you need to play video and just the audio when app gets into background.

How to play audio and video together in iphone

I want to play some videos with audio from different audio files. For this i am playing a video(using MPMoviePlayerController) and i am playing an audio(using AVAudioPlayer).
When i play my code through simulator it works fine (the video with my audio file specified). When i run the application in device it doesn't work like that. It plays video but sound file is not getting played. How can i play an audio and a video together ?
This has been discussed before and I don't think anyone's figured it out yet:
Play audio and video at a same time in iPhone application
how can we play audio and video together in ipod/iphone?
Which format support the audio file with a playing video?