I need to list available outputs (like BleutoothLE, HeadPhones, BuiltInReceiver) but i can just access currentRoute's output.
Can anyone access all available outputs, please share your comments ?
Thanks in advance.
You have two options as far as I know:
Add a MPVolumeView
to your view and, set showsVolumeSlider
to 0 and set showsRouteButton
to 1. This will put a system provided icon where the user can pick from available outputs.
AVAudioSession has a very limited overrideOutputAudioPort
method that can route audio to the built in speaker.
[[AVAudioSession sharedInstance] overrideOutputAudioPort:AVAudioSessionPortOverrideSpeaker error:nil];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With