RESOLVED FIXED 236440
Safari can't play video completely at bilibili.com
https://bugs.webkit.org/show_bug.cgi?id=236440
Summary Safari can't play video completely at bilibili.com
bear.yang
Reported 2022-02-10 06:52:55 PST
Created attachment 451525 [details] This is a screenshot of when the video playback failure occurred I'm from China and safari can't play this video in its entirety. In the last 3 seconds of the video, the safari screen is stuck and keeps showing that it is buffering data. If I switch to Chrome and Firefox to play this video, there is not the same problem. The address of this video is: https://www.bilibili.com/video/BV1Cq4y127pq
Attachments
This is a screenshot of when the video playback failure occurred (94.29 KB, image/png)
2022-02-10 06:52 PST, bear.yang
no flags
Patch (658.28 KB, patch)
2022-03-21 06:30 PDT, Jean-Yves Avenard [:jya]
ews-feeder: commit-queue-
Patch (659.35 KB, patch)
2022-03-22 05:16 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (660.12 KB, patch)
2022-03-22 05:59 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (660.96 KB, patch)
2022-03-22 14:33 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (663.77 KB, patch)
2022-03-22 15:32 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (660.17 KB, patch)
2022-03-22 16:13 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (659.96 KB, patch)
2022-03-22 17:36 PDT, Jean-Yves Avenard [:jya]
no flags
Patch (659.82 KB, patch)
2022-03-24 05:55 PDT, Jean-Yves Avenard [:jya]
no flags
Radar WebKit Bug Importer
Comment 1 2022-02-10 09:48:01 PST
Jean-Yves Avenard [:jya]
Comment 2 2022-03-21 06:30:39 PDT
Jean-Yves Avenard [:jya]
Comment 3 2022-03-22 05:16:31 PDT
Jean-Yves Avenard [:jya]
Comment 4 2022-03-22 05:59:15 PDT
Created attachment 455366 [details] Patch Add TestExpectations for GTK
Michael Catanzaro
Comment 5 2022-03-22 08:58:36 PDT
Comment on attachment 455366 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455366&action=review > LayoutTests/platform/gtk-wk2/TestExpectations:7 > -# This empty file is needed for flakiness dashboard to work. > -# FIXME: Remove once the flakiness dashboard is updated to not load this file. > +# These are the layout test expectations for the GTK2 port of WebKit. > +# > +# See http://trac.webkit.org/wiki/TestExpectations for more information on this file. > +# > +# Never add any tests to this file without opening a bug on bugzilla.webkit.org. > + > +webkit.org/b/238201 media/media-source/media-mp4-hevc-bframes.html [ Skip ] Can you please use LayoutTests/platform/glib/TestExpectations instead? Thanks. If it really works for WPE but not GTK, then you can use LayoutTests/platform/gtk/TestExpectations.
Jean-Yves Avenard [:jya]
Comment 6 2022-03-22 14:33:08 PDT
Created attachment 455428 [details] Patch Add TestExpectations for GTK attempt #2
Michael Catanzaro
Comment 7 2022-03-22 14:35:43 PDT
Comment on attachment 455428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455428&action=review > LayoutTests/platform/gtk/TestExpectations:160 > +webkit.org/b/238201 media/media-source/media-mp4-hevc-bframes.html [ Failure ] It should only be needed in LayoutTests/platform/glib/TestExpectations. WPE and GTK both use GLib, so you only need to touch the GTK expectations if the test is broken for GTK but not for WPE. That should be pretty unusual because the multimedia code is identical.
Michael Catanzaro
Comment 8 2022-03-22 14:35:44 PDT
Comment on attachment 455428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455428&action=review > LayoutTests/platform/gtk/TestExpectations:160 > +webkit.org/b/238201 media/media-source/media-mp4-hevc-bframes.html [ Failure ] It should only be needed in LayoutTests/platform/glib/TestExpectations. WPE and GTK both use GLib, so you only need to touch the GTK expectations if the test is broken for GTK but not for WPE. That should be pretty unusual because the multimedia code is identical.
Jean-Yves Avenard [:jya]
Comment 9 2022-03-22 15:32:37 PDT
Created attachment 455439 [details] Patch Add TestExpectations for GTK attempt #3
Jean-Yves Avenard [:jya]
Comment 10 2022-03-22 16:13:00 PDT
Created attachment 455449 [details] Patch Add TestExpectations for GTK attempt #3
Jer Noble
Comment 11 2022-03-22 16:49:09 PDT
Comment on attachment 455449 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455449&action=review > Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:1262 > + // Looking up the prior frame would require a computationally intensive operation. So instead, as a workaround I don't think this is strictly true; we could return a pair of iterators from the `addSample()` code above and step backwards. Perhaps the current behavior is better though, but it might be best to remove that statement from the comment.
Jean-Yves Avenard [:jya]
Comment 12 2022-03-22 17:36:41 PDT
Jean-Yves Avenard [:jya]
Comment 13 2022-03-24 05:55:29 PDT
Created attachment 455634 [details] Patch fix GTK failures
EWS
Comment 14 2022-03-24 13:52:08 PDT
Committed r291813 (248840@main): <https://commits.webkit.org/248840@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455634 [details].
Brent Fulgham
Comment 15 2022-05-26 14:53:42 PDT
This fix shipped with Safari 15.5 (all platforms).
Note You need to log in before you can comment on or make changes to this bug.