RESOLVED MOVED 165342
[MSE] SourceBuffer abort() before appending segment causes partial segment
https://bugs.webkit.org/show_bug.cgi?id=165342
Summary [MSE] SourceBuffer abort() before appending segment causes partial segment
Joey Parrish
Reported 2016-12-02 14:54:55 PST
Shaka Player (https://github.com/google/shaka-player) discovered that calling abort() on Safari's SourceBuffer before appending a segment sometimes results in only part of the segment showing up in buffer. In our test, we append the init segment, then call abort(), then append the first media segment. Only 6.9 seconds of the 10-second segment show up. This is similar in many ways to this bug on Safari 9: https://bugs.webkit.org/show_bug.cgi?id=160316 However, the content from that bug does not trigger this one. It is unclear to me why this bug on Safari 10 is content-specific. To reproduce: 1. Visit http://storage.googleapis.com/shaka-demo-assets/_bugs/safari-10-mse-abort/index.html in Safari 2. Open the JavaScript console 3. Observe the error message showing that only part of the segment is in buffer. Reproducible on macOS Sierra, Safari 10.0.1 (12602.2.14.0.7) and WebKit nightly r209234.
Attachments
Radar WebKit Bug Importer
Comment 1 2017-02-26 17:07:31 PST
Radar WebKit Bug Importer
Comment 2 2017-02-26 17:08:11 PST
Joey Parrish
Comment 3 2017-03-23 12:12:50 PDT
Hi all, Any progress on this? This is particularly harming our ability to play TS content via MediaSource on Safari. I am very much looking forward to a Safari tech preview or WebKit nightly with a fix so that we can verify our HLS work on Safari.
Jon Lee
Comment 4 2017-04-01 21:24:48 PDT
Joey Parrish
Comment 5 2017-10-03 14:46:17 PDT
Still reproducible on Safari 11.
Joey Parrish
Comment 6 2021-02-18 11:55:02 PST
Still broken in Safari 14.0.2.
Brent Fulgham
Comment 7 2022-02-10 13:16:43 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'. No WebKit changes can be made to resolve this issue. The relevant component believes that this has been resolved (in <rdar://problem/30725484>), but your comment indicates that it has not. Can you try your test with a current iOS 15 release and confirm the fix? If it has not been fixed, we can re-engage with that team.
Note You need to log in before you can comment on or make changes to this bug.