Bug 226067

Summary: Audio .play() cuts off the beginning of (short?) clips
Product: WebKit Reporter: Jay <jay>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, chen.jingan, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 11   

Description Jay 2021-05-20 21:43:59 PDT
When using `obj.play()` on an audio (mp3) component, the second time .play() is called, the full audio clip does not play.

https://jsfiddle.net/8fbt7rgc/1/

https://stackoverflow.com/questions/67629761/how-to-stop-safari-clipping-fractions-of-time-off-audio-on-second-play
Comment 1 Jay 2021-05-20 21:58:27 PDT
Oh, wait. The problem I was experiencing, where the second play didn't play all of the 2 second clip, has stopped occurring. So its not a straight black and white "it doesn't work the second time" There seems to be something else going on.  I'll update this ticket if the problem occurs again, or close it if the problem does not occur again in the next day or so.
Comment 2 Jay 2021-05-20 22:21:32 PDT
Nope the problem is back. The second (and following times) I press play, the first half a second or so is cut off. Still not sure why its intermittent.
Comment 3 Alexey Proskuryakov 2021-05-21 16:31:59 PDT
I can reproduce with r277884.
Comment 4 Radar WebKit Bug Importer 2021-05-27 21:44:16 PDT
<rdar://problem/78603527>
Comment 5 Brent Fulgham 2022-06-30 11:38:05 PDT
The fix for this issue needs to be made outside of the WebKit source code, therefore marking this as "RESOLVED | MOVED".

The work on that operating system component is being done under this radar:
<rdar://75702167>
Comment 6 Brent Fulgham 2022-06-30 13:07:04 PDT
We believe this is resolved in:
macOS Ventura Beta 2 (and newer).
iOS 16.0 Beta 2 (and newer).