Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSE] Should not seek with no seekable range
https://bugs.webkit.org/show_bug.cgi?id=247602 Reviewed by Jer Noble. According https://html.spec.whatwg.org/multipage/media.html#seeking, "If there are no ranges given in the seekable attribute then set the seeking IDL attribute to false and return." For live streaming videos, their duration is infinity, then there is no seekable range. So 'seek' should be aborted in this case. * LayoutTests/media/media-source/media-source-no-seek-with-infinite-duration-expected.txt: Added. * LayoutTests/media/media-source/media-source-no-seek-with-infinite-duration.html: Test seeking status and currentTime with an infinite duration. * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::seekTask): Added a condtion to check if there is no seekable range for for notifying the mdedia engine of a seek. Canonical link: https://commits.webkit.org/256759@main
- Loading branch information
Showing 3 changed files with 75 additions and 3 deletions.