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
[GStreamer] Videos start playing muted in epiphany with no unmute ico…
…n visible in tab, webkit_web_view_get_is_muted() returns incorrect results https://bugs.webkit.org/show_bug.cgi?id=223195 Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-07 Source/WebCore: Reviewed by Eric Carlson. For GStreamer ports the semantics of IsPlayingAudio slightly differ from Apple ports. The webkit_web_view_is_playing_audio() API is expected to return true if a page is producing audio even though it might be muted. The second change affects the private player mute state when the page mute state has been updated. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::mediaState const): (WebCore::HTMLMediaElement::pageMutedStateDidChange): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Logging improvements. (WebCore::MediaPlayerPrivateGStreamer::isMuted const): (WebCore::MediaPlayerPrivateGStreamer::volume const): (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVolumeChange): (WebCore::MediaPlayerPrivateGStreamer::setMuted): (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfMute): Tools: Reviewed by Michael Catanzaro. Adapt is-playing test, after muting the page, webkit_web_view_is_playing_audio() should still return TRUE. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: (IsPlayingAudioWebViewTest::periodicallyCheckIsPlayingForAWhile): (testWebViewIsPlayingAudio): Canonical link: https://commits.webkit.org/236245@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
256789e
commit deee5f6a92527d25071abe3921ff7bbb27d0c056
Showing
5 changed files
with
93 additions
and
13 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