Bug 277636

Summary: Video not allowed but still Airplays if src set before calling play()
Product: WebKit Reporter: Jeff Johnson <opendarwin>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
Attachments:
Description Flags
Sample html demonstrating the bug none

Jeff Johnson
Reported 2024-08-05 09:59:38 PDT
Created attachment 472062 [details] Sample html demonstrating the bug Steps to reproduce: 1) Open the Music app on iPhone 2) Play music 3) Airplay to Apple TV 4) Open Safari 5) Open the attached sample html 6) Press the "Yes src" button 7) Wait 5 seconds 8) Notice that nothing changes 9) Press the "No src" button 10) Wait 5 seconds Expected results: Nothing changes Actual results: This video is playing on "Apple TV". The music stops playing. In both cases, there a "Unhandled Promise Rejection: NotAllowedError", as expected. The difference between the two videos is that one has a src, and the other has no src but has its src set right before calling play().
Attachments
Sample html demonstrating the bug (1.07 KB, text/html)
2024-08-05 09:59 PDT, Jeff Johnson
no flags
Jeff Johnson
Comment 1 2024-08-05 10:01:39 PDT
This issue affected the front page of https://www.nytimes.com/, although the video is no longer on the front page now.
Radar WebKit Bug Importer
Comment 2 2024-08-05 16:23:02 PDT
Note You need to log in before you can comment on or make changes to this bug.