Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Update MediaSessionInfo media elements with a srcObject
https://bugs.webkit.org/show_bug.cgi?id=245753 rdar://problem/100477469 Reviewed by Jer Noble. The optimization at the top of MediaElementSession::updateMediaUsageIfChanged does not take into account media elements that have no currentSrc but do have a srcObject. Don't exit early for such elements. Store an additional bit of information on MediaSessionInfo to represent whether the element has any source (currentSrc or srcObject). * Source/WebCore/html/HTMLMediaElement.h: (WebCore::HTMLMediaElement::hasSource const): * Source/WebCore/html/MediaElementSession.cpp: (WebCore::MediaElementSession::updateMediaUsageIfChanged): * Source/WebCore/platform/graphics/MediaUsageInfo.h: (WebCore::MediaUsageInfo::operator== const): (WebCore::MediaUsageInfo::encode const): (WebCore::MediaUsageInfo::decode): Canonical link: https://commits.webkit.org/254948@main
- Loading branch information
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters