Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r245848 - [MSE][GStreamer] update the readyState correctly in M…
…ediaPlayerPrivateGStreamerMSE https://bugs.webkit.org/show_bug.cgi?id=197834 Patch by Yacine Bandou <yacine.bandou@softathome.com> on 2019-05-28 Reviewed by Xabier Rodriguez-Calvar. Source/WebCore: The buffering state and the m_downloadFinished boolean aren't supported in the MSE case. When the readyState is already "HaveEnoughData", we don't want to revert it to "HaveFutureData", or else the MediaPlayer would send a "canplay" event instead of a "canplaythrough". Test: media/media-source/media-source-canplaythrough-event.html * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: (WebCore::MediaPlayerPrivateGStreamerMSE::updateStates): LayoutTests: Add a new test that checks if the MediaElement receives the "canplaythrough" event when the media content is entirely injected to MSE sourceBuffer. * media/media-source/media-source-canplaythrough-event-expected.txt: Added. * media/media-source/media-source-canplaythrough-event.html: Added.
- Loading branch information