Bug 206525

Summary: audio in iframe can not be restarted in lockscreen
Product: WebKit Reporter: Jonathan <jonathan>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: iOS 13   

Description Jonathan 2020-01-21 04:48:42 PST
If I play an audio element containing an mp3 stream in an iframe and go the lockscreen, I am unable to play it again after having paused it

Steps to reproduce:
1 - on an iphone in safari play an audio element in an iframe (example: https://ccfhs.csb.app/ )
2 - lock the phone
3 - in the lock screen press the pause button to pause the stream
4 - pressing the play button to start the stream again
5 - even though the play button turns into a pause button, the audio never starts playing
6 - when you go back to safari, you see a pause button in the audio element, but the stream does not start playing.. even when toggling the pause button, the stream never starts playing again

Source code of example: https://codesandbox.io/s/priceless-waterfall-ccfhs
Comment 1 Radar WebKit Bug Importer 2020-01-22 15:44:03 PST
<rdar://problem/58814172>
Comment 2 Radar WebKit Bug Importer 2020-01-22 15:44:05 PST
<rdar://problem/58814173>