[Webkit-unassigned] [Bug 274195] New: [MSE] If src attribute is defined, ignore source alternative

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 14 21:03:55 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274195

            Bug ID: 274195
           Summary: [MSE] If src attribute is defined, ignore source
                    alternative
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jean-yves.avenard at apple.com

Per spec, if a media element has a src attribute defined, `<source>` are ignored [1] as a consequence of the media source selection algorithm [2]

step 6:
```
⌛ If the media element has an assigned media provider object, then let mode be object.

⌛ Otherwise, if the media element has no assigned media provider object but has a src attribute, then let mode be attribute.

⌛ Otherwise, if the media element does not have an assigned media provider object and does not have a src attribute, but does have a source element child, then let mode be children and let candidate be the first such source element child in tree order.
```

Currently, to check if we have a remote playback alternative, we only check if a playable alternative source is defined, and if so allow playback. But if a src (or srcObject) is defined, when selecting an AirPlay target those sources will be ignored.

So we need HTMLMediaElement::hasWirelessPlaybackTargetAlternative() to return false unless `m_loadState != LoadingFromSourceElement`

[1] https://html.spec.whatwg.org/multipage/media.html#attr-media-src
[2] https://html.spec.whatwg.org/multipage/media.html#concept-media-load-algorithm

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240515/d3839b33/attachment.htm>


More information about the webkit-unassigned mailing list