[webkit-changes] [WebKit/WebKit] ab5398: [MSE] Should not seek with no seekable range

ykimot noreply at github.com
Wed Nov 16 17:25:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab539817a72136ed0d4a41d1489404ee9a0259dc
      https://github.com/WebKit/WebKit/commit/ab539817a72136ed0d4a41d1489404ee9a0259dc
  Author: Yousuke Kimoto <yousuke.kimoto at 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




More information about the webkit-changes mailing list