The documentation for AVPlayer reads as follows:
[The] player works equally well with local and remote media files.
However, the documentation for AVAudioPlayer states the following:
Apple recommends using this class to play sound if you don’t play sound captured from the network stream.
For the work I'm doing, I need some AVAudioPlayer features, but all my audio is streamed. The main thing that I need from AVAudioPlayer, which AVPlayer does not have, is the play property. It is difficult to create a game interface without this property, among others.
So what is the difference between AVPlayer and AVAudioPlayer, which makes the latter unsuitable for network streaming? Is there a way to get some information from AVPlayer that AVAudioPlayer provides, for example, the play property?
iphone ios4 audio streaming core-audio
macinjosh Jul 19 '10 at 16:15 2010-07-19 16:15
source share