Bug 212780

Summary: audio (and sometimes video) element get paused and stays paused when another app uses audio
Product: WebKit Reporter: makarand
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, eric.carlson, jer.noble, marymhart, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   

Description makarand 2020-06-04 14:06:47 PDT
Some audio (and sometimes video) elements stay in paused state even after Safari gains foreground.

To repro this issue check out sample app @ https://makarandp0.github.io/safariAudioGetsPaused/

Steps
1) Click "Synthetic Audio" - This will create an audio track local and remote (using webrtc) and attach them to audio elements.
2) Go to Youtube (or other application) and play some content - Notice that audio elements on sample page gets paused - which is Okay.

3) Go back to Safari - 
Actual: notice that Local Audio Track starts playing but Remote Audio Element stays muted.
Expected: Both audio elements should receive "play" event and start playing.

I have seen this with both audio and video tracks, both synthetic and the ones obtained using `getUserMedia`.
Comment 1 Radar WebKit Bug Importer 2020-06-07 13:50:01 PDT
<rdar://problem/64094978>