Sadly, using an HLS stream with AVFoundation
doesn’t give you any control over the audio tracks. I ran into the same problem trying to mute an HLS stream, which turned out to be impossible.
The only way you could read audio data would be to tap into the AVAudioSession
.
EDIT
You can access the AVAudioSession like this:
[AVAudioSession sharedInstance]
Here’s the documentation for AVAudioSession