flmcl
(francis)
1
When I activate a system sound on my iphone from my swiftUI app the sound works fine. But if I try to play a youtube video there is no sound. The only way I can get sound back is to reset my iphone. Tried the developer forum but no response. Thanks for any help
func dismissView() {
let mySystemSound: SystemSoundID = 1322
AudioServicesPlaySystemSound(mySystemSound)
self.presentation.wrappedValue.dismiss()
}
Here's Audio Session Programming Guide. It outlines how competing audio demands (youtube sound, and your app's sound) is resolved. Should still be relevant.
1 Like
flmcl
(francis)
3
Thank you I will read through it.