Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Media] Allow access to MediaElement id from MediaPlayerPrivate
https://bugs.webkit.org/show_bug.cgi?id=224818 Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-23 Reviewed by Xabier Rodriguez-Calvar. A new method is added in the MediaPlayer allowing to query the client media element for its identifier. That could be useful for accurate naming of the internal player/pipeline in the MediaPlayerPrivate. If no specific id was set on the media element then the id is empty string and the MediaPlayerPrivate needs to handle that by forging a unique id. This also lead me to simplify pipeline-related code in the GStreamer player. The player can handle only one pipeline in its entire life-time so the code handling pipeline "re-loading" was actually never hit. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::parseAttribute): * html/HTMLMediaElement.h: * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::elementId const): * platform/graphics/MediaPlayer.h: (WebCore::MediaPlayerClient::mediaPlayerElementId const): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::load): (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): (WebCore::MediaPlayerPrivateGStreamer::loadFull): Deleted. (WebCore::MediaPlayerPrivateGStreamer::setPipeline): Deleted. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: Canonical link: https://commits.webkit.org/236952@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
2899877
commit 6db7063
Showing
7 changed files
with
63 additions
and
39 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
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
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