How does one access the old API for setting audioSession categories? I have an old iPad that I use a video app on that is stuck at iOS 9.3. I'm using Xcode 10. I think it's just method i need here but I'm not sure how to find it.
func configureAudioSession() {
let audioSession = AVAudioSession.sharedInstance()
do {
if #available(iOS 10.0, *) {
try audioSession.setCategory(.playback, mode: .moviePlayback, options: .allowBluetooth)
} else {
// Fallback on earlier versions
}
}
catch {
print("Setting category to AVAudioSessionCategoryPlayback failed.")
}
}
Thanks.