Bug 268374

Summary: HTML5 Audio playback does not work
Product: WebKit Reporter: Maurício Hanika <mhanika>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 17   
Attachments:
Description Flags
WebViewAudioIssue none

Maurício Hanika
Reported 2024-01-30 05:02:16 PST
Created attachment 469616 [details] WebViewAudioIssue Radar: FB13567758
Attachments
WebViewAudioIssue (65.19 KB, application/zip)
2024-01-30 05:02 PST, Maurício Hanika
no flags
Maurício Hanika
Comment 1 2024-01-30 05:03:29 PST
When trying to play HTML5 Audio elements either through the native controls offered by the <audio> element or by programatically calling `audio.play()` in JavaScript, the audio does not play on iOS 17.4 Beta. This problem occurs in Safari (for example, navigate to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#try_it and try to play the audio asset), as well as in custom WKWebView instances with local and remote audio assets (see attached project). Playing HTML5 audio elements should work as expected. Additionally, if `mediaTypesRequiringUserActionForPlayback` is set to `none`, auto playing audio and video assets should work.
Alexey Proskuryakov
Comment 2 2024-01-30 13:01:50 PST
Alexey Proskuryakov
Comment 3 2024-01-30 13:04:11 PST
I can confirm that this doesn't work. I don't have devices with older OSes readily available, could you please confirm whether this particular test worked before? Still works on macOS for me.
Maurício Hanika
Comment 4 2024-01-31 00:20:50 PST
I can confirm that it works on my iPad (7th Gen.) with iOS 17.2. Additionally, I have checked the linked MDN <audio> page using SauceLabs real device farm and I can confirm that it works on: * iPhone 12 Pro Max, iOS 17.3 * iPhone 12, iOS 16.7 * iPhone 6s, iOS 15.7.6
Alexey Proskuryakov
Comment 5 2024-01-31 09:00:20 PST
Thank you for the report! Looks like this was fixed in bug 267787 (the fix is not yet available in a seed). *** This bug has been marked as a duplicate of bug 267787 ***
Maurício Hanika
Comment 6 2024-02-01 01:40:40 PST
Thanks, I'll check with the next seeds and report if it was fixed.
Maurício Hanika
Comment 7 2024-02-09 00:46:05 PST
Not reproducible with iOS 17.4 Build 21E5195e 👍
Note You need to log in before you can comment on or make changes to this bug.