Audio initiated from safari tab does not continue playing in background

Originator:jdelong
Number:rdar://34713947 Date Originated:9/28/2017
Status:Open Resolved:
Product:iOS + SDK Product Version:11.0.1
Classification:Serious Bug Reproducible:Always
 
Summary:
We have an app that has the ability to play audio from AVAudioSession and Safari Tab. Since upgrading to iOS 11, audio no longer continues to play when the app is backgrounded. Control center shows the audio as playing, but does not produce any audible sound.

Update: iOS 11.0.1 has fixed the bug with audio not continuing to play in the background for AVAudioSession, but audio played from SFSafariViewController still does not continue playing when the app is backgrounded.

Here are some hyperlinks with audio content for reference.
http://radiomaria.us/listen-to-the-radio/
http://ice7.securenetsystems.net/WVHF

Steps to Reproduce:
1. Launch Safari view controller to a webpage with audio content
2. Play audio
3. Background the app

Expected Results:
Expected audio to continue playing

Actual Results:
Since iOS 11 (and even after iOS 11.0.1), audio does not play in background. Control center shows the audio as playing, but does not produce any audible sound. Tapping on audio controls within Control Center does nothing.


Version:
11.0.1

Notes:
Same exact code in iOS 9 and 10 works as we would expect.

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!