views:

599

answers:

2

The documentation for AVPlayer states the following:

[The] player works equally well with local and remote media files

However, the documentation for AVAudioPlayer states the following:

Apple recommends that you use this class for audio playback unless you are playing audio captured from a network stream

For the work I am doing I need some of the capabilities of AVAudioPlayer, but all my audio is being streamed. The main thing I need from AVAudioPlayer that AVPlayer does not have is the "playing" property. It is difficult to build a player UI without that property, among others.

So what is the difference between AVPlayer and AVAudioPlayer that makes the latter unsuitable for network streaming? Is there a way to get some of the info from AVPlayer that AVAudioPlayer provides such as the "playing" property?

+2  A: 

The AVPlayer actually has a similar property as the playing property of AVAudiPlayer. Take a look at the rate property.

tadej5553
Yeah I am using that now but it isn't super convenient. Thanks for the idea though!
macinjosh
Hi Macinjosh,If you figure out the exactly the difference between the two, please post it.
Krishnan