Play audio while silenced or through Receiver

AVAudioSession and AVAudioPlayer

To take full control over the sound routing and when
Play audio through Receiver (earpiece speaker)

Link to gist with extension I’ve created to deal with category changes.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.