Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 444173002: Let the effective media volume be 0 if the media element is muted (Closed)

Created:
6 years, 4 months ago by philipj_slow
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, nessy, vcarbune.chromium
Project:
blink
Visibility:
Public.

Description

Let the effective media volume be 0 if the media element is muted The bug was with a muted media element slaved to an unmuted media controller, in which case the media element's muted state was ignored. Attaching a media controller to an already-playing media element also wouldn't update the volume, so do that in bringElementUpToSpeed(). BUG=399623 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179738

Patch Set 1 #

Total comments: 2

Patch Set 2 : test and bugfix #

Patch Set 3 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -27 lines) Patch
A LayoutTests/media/effective-media-volume.html View 1 1 chunk +40 lines, -0 lines 1 comment Download
M Source/core/html/HTMLMediaElement.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 chunks +25 lines, -22 lines 0 comments Download
M Source/core/html/MediaController.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.cpp View 1 2 chunks +2 lines, -2 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
philipj_slow
PTAL. playerVolume() is untested, is it OK to leave it like that or should I ...
6 years, 4 months ago (2014-08-06 21:39:09 UTC) #1
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/444173002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (left): https://codereview.chromium.org/444173002/diff/1/Source/core/html/HTMLMediaElement.cpp#oldcode3295 Source/core/html/HTMLMediaElement.cpp:3295: shouldMute = m_mediaController->muted(); So is the bug here ...
6 years, 4 months ago (2014-08-06 23:51:05 UTC) #2
philipj_slow
https://codereview.chromium.org/444173002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (left): https://codereview.chromium.org/444173002/diff/1/Source/core/html/HTMLMediaElement.cpp#oldcode3295 Source/core/html/HTMLMediaElement.cpp:3295: shouldMute = m_mediaController->muted(); On 2014/08/06 23:51:05, acolwell wrote: > ...
6 years, 4 months ago (2014-08-07 07:34:23 UTC) #3
philipj_slow
I decided to make this more like effectivePlaybackRate(), moved things around a little and added ...
6 years, 4 months ago (2014-08-07 15:35:20 UTC) #4
philipj_slow
rebase
6 years, 4 months ago (2014-08-07 15:39:09 UTC) #5
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/444173002/diff/40001/LayoutTests/media/effective-media-volume.html File LayoutTests/media/effective-media-volume.html (right): https://codereview.chromium.org/444173002/diff/40001/LayoutTests/media/effective-media-volume.html#newcode7 LayoutTests/media/effective-media-volume.html:7: [0, 0.5, 1].forEach(function(volume) ooo.. fancy. :) https://codereview.chromium.org/444173002/diff/40001/Source/web/WebMediaPlayerClientImpl.cpp File ...
6 years, 4 months ago (2014-08-07 15:52:59 UTC) #6
philipj_slow
https://codereview.chromium.org/444173002/diff/40001/Source/web/WebMediaPlayerClientImpl.cpp File Source/web/WebMediaPlayerClientImpl.cpp (right): https://codereview.chromium.org/444173002/diff/40001/Source/web/WebMediaPlayerClientImpl.cpp#newcode109 Source/web/WebMediaPlayerClientImpl.cpp:109: double WebMediaPlayerClientImpl::volume() const On 2014/08/07 15:52:59, acolwell wrote: > ...
6 years, 4 months ago (2014-08-07 15:59:28 UTC) #7
philipj_slow
adamk, can you rubberstamp Source/web?
6 years, 4 months ago (2014-08-07 15:59:50 UTC) #8
adamk
rslgtm for Source/web
6 years, 4 months ago (2014-08-07 16:49:40 UTC) #9
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 4 months ago (2014-08-07 18:02:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/444173002/40001
6 years, 4 months ago (2014-08-07 18:06:01 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 18:47:41 UTC) #12
Message was sent while issue was closed.
Change committed as 179738

Powered by Google App Engine
This is Rietveld 408576698