Bug 245753 - the MediaSessionInfo for a media element doesn't get updates when a srcObject is used
Summary: the MediaSessionInfo for a media element doesn't get updates when a srcObject...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-27 14:47 PDT by Cameron McCormack (:heycam)
Modified: 2022-09-28 02:06 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2022-09-27 14:47:41 PDT
In bug 243062, we added an optimisation to avoid the expensive computation of an updated MediaSessionInfo object when the previous state had no currentSrc URL and the current state doesn't either.  But this excludes media elements that have a srcObject, whose state we still want to reflect through media sessions.
Comment 1 Radar WebKit Bug Importer 2022-09-27 14:48:12 PDT
<rdar://problem/100477469>
Comment 2 Cameron McCormack (:heycam) 2022-09-27 15:12:24 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4773
Comment 3 EWS 2022-09-28 02:06:36 PDT
Committed 254948@main (6cfe0a4e9efc): <https://commits.webkit.org/254948@main>

Reviewed commits have been landed. Closing PR #4773 and removing active labels.