U
U
User202021-11-13 16:01:40
iOS
User20, 2021-11-13 16:01:40

Why doesn't sound in the app work on AirPods Pro?

After updating to iOS 15, there was no sound in the app when playing audio on AirPods Pro model only. With the rest of the models everything is fine. I have a test project but I don't have AirPods Pro. Can anyone test or point out what the problem is?

let url = Bundle.main.url(forResource: "\(masterIndex)0", withExtension: "m4a")!
        
        do {
            
                audioPlayer = try AVAudioPlayer(contentsOf: url)
                audioPlayer.delegate = self
                audioPlayer.prepareToPlay()
                play(sender:AnyObject.self as AnyObject)
            
                setupMediaPlayerNotificationView(true)
                lockScreen()
            
        } catch {
            
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question