AVAudioPlayerDelegate deprecated methods

i noticed today that many methods in AVAudioPlayerDelegate are deprecated as of iOS 8; notably, all of the methods dealing with interruptions (audioPlayerBeginInterruption:, etc). there aren't any alternatives listed in the documentation. what should we use instead? AVAudioSession notifications?


thank you.

Accepted Answer

i looked at the header file, and it says / AVAudioPlayer INTERRUPTION NOTIFICATIONS ARE DEPRECATED - Use AVAudioSession instead. */, so that answers my question. would be good to have that reflected in the docs—i'll try to remember to file a documentation radar. thank you.

The state of the Audio Documentation in general is lagging when compared to other technologies on our platforms and documentation bug reports help us not only fix missing or incorrect information but let us gauge demand for new documents.


File bugs to ask for what you want to see documented. Use the “Feedback” link at the bottom of Reference Library pages when you spot a problem or use the bugreporter site. Note what frameworks/topics you would like to see covered in a "Programming Guide" for example as opposed to simply having "Reference” documentation and so on. It all helps.


While headers do contain a surprising amount of information not found in the docs (and it's surprising how many developers don't even reference the headers!) they are not a substitute for technical documentation.

AVAudioPlayerDelegate deprecated methods
 
 
Q