Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: ab539817a72136ed0d4a41d1489404ee9a0259dc https://github.com/WebKit/WebKit/commit/ab539817a72136ed0d4a41d1489404ee9a0259dc Author: Yousuke Kimoto <yousuke.kim...@sony.com> Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths: A LayoutTests/media/media-source/media-source-no-seek-with-infinite-duration-expected.txt A LayoutTests/media/media-source/media-source-no-seek-with-infinite-duration.html M Source/WebCore/html/HTMLMediaElement.cpp Log Message: ----------- [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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes