[Webkit-unassigned] [Bug 238113] New: Audio element playback ends early when src is a blob URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 19 11:23:17 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238113

            Bug ID: 238113
           Summary: Audio element playback ends early when src is a blob
                    URL
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: supersonicandtails at gmail.com

When playing audio via an HTMLAudioElement instance and the src is a Blob URL, playback halts before the end of the track and the "ended" event is never fired on the audio element.

Steps to Reproduce:

Please see the jsfiddle link for a demo: https://jsfiddle.net/1yv7b82n/5/

1. Fetch an mp3 or other audio file and read the response body as a Blob
2. Get an object URL from the blob then set that URL as the src of an audio element
3. Call play() on the audio element

Expected:
The audio plays all the way through, and the onended event is fired after playback completes.

Actual:
Playback never completes and onended is never fired. In the example provided in the jsfiddle above, I observed playback ceasing several seconds before the actual end of the audio. I also notice my phone heating up after audio ends so maybe there is runaway CPU/memory usage somewhere.


Build Date & Hardware:

Safari on iOS 15.4 stable. Does not occur on Safari 15.4 (17613.1.17.1.6) on MacOS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220319/05a5ee38/attachment-0001.htm>


More information about the webkit-unassigned mailing list