[webkit-changes] [WebKit/WebKit] 621cea: Hulu.com video doesn't play

Jer Noble noreply at github.com
Tue Mar 28 16:58:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 621cea8475c6fd1e080e42afab04cb857c815407
      https://github.com/WebKit/WebKit/commit/621cea8475c6fd1e080e42afab04cb857c815407
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M Source/WebCore/html/HTMLMediaElement.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h

  Log Message:
  -----------
  Hulu.com video doesn't play
https://bugs.webkit.org/show_bug.cgi?id=254605
rdar://106667631

Reviewed by Eric Carlson.

Recent changes in the AVFoundation framework have caused canPlayType() queries for
`application/vnd.apple.mpegurl; codecs="stpp.ttml.im1t"` and
`application/vnd.apple.mpegurl; codecs="wvtt"` to fail. These were never well-formed
queries in the first place, as `application/vnd.apple.mpegurl` does not take a codecs
parameter. However, Hulu.com appears to depend upon those queries returning "probably"
in order to vend a working HLS stream.

Add a quirk for hulu.com only which hard codes the answer to those two canPlayType()
queries to "probably".

* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::canPlayType const):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldAdvertiseSupportForHLSSubtitleTypes const):
* Source/WebCore/page/Quirks.h:

Canonical link: https://commits.webkit.org/262248@main




More information about the webkit-changes mailing list