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

Issue 2550593003: Expose media controls to accessibility (Closed)

Created:
4 years ago by David Tseng
Modified:
4 years ago
CC:
aboxhall+watch_chromium.org, alemate+watch_chromium.org, arv+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, je_julie, nektar+watch_chromium.org, oshima+watch_chromium.org, yuzo+watch_chromium.org, Zhiqiang Zhang (Slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose media controls to accessibility This cl wires up media controls given a web contents -> AX tree mapping. Actions: startDuckingMedia: requests the associated MediaSession start ducking. This gets passed back to the MediaSessionController which eventually relays the new volume multiplier. stopDuckingMedia: same as above with volume multiplier set to 1.0. resumeMedia: resumes suspended media suspendMedia: suspends currently playing media Events: mediaStartedPlaying mediaStoppedPlaying Note: to see this work, use flag --enable-default-media-session This would allow a client extension to: - duck audio on a specific web contents - observe when a media session is started/stopped For ChromeVox, we can then allow audio not coming from the TTS extension or the ChromeVox extension (e.g. earcons) to be ducked. This also allows us to duck web contents in the background, longer running media sessions, foreground web contents based on a key command, after a tts start event, etc. TEST=observe events; play media, stop media; verify media started/stopped come through. Explicitly call start/stop ducking; verify audio ducks/unducks. Also, call resume/suspend and verify audio resumes/suspends. BUG=621697 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e6a3fc3ecf930563d9ad972691e7c8f24c27654f Cr-Commit-Position: refs/heads/master@{#438525}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Not for review; illustrates audio focus #

Patch Set 3 : git cl format #

Patch Set 4 : Expose ducking controls to accessibility #

Patch Set 5 : Expose ducking controls to accessibility #

Patch Set 6 : Expose ducking controls to accessibility #

Total comments: 2

Patch Set 7 : Expose ducking controls to accessibility #

Patch Set 8 : Fix Chrome Cast build #

Patch Set 9 : Expose ducking controls to accessibility #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -6 lines) Patch
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 3 chunks +45 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/chromevox/cvox2/background/media_automation_handler.js View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 2 1 chunk +7 lines, -3 lines 0 comments Download
M chromecast/browser/cast_media_blocker_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/media/session/media_session_impl.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/media_session.h View 2 1 chunk +8 lines, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 65 (38 generated)
David Tseng
dalecurtis for media related changes dmazzoni for accessibility Ready for an initial look.
4 years ago (2016-12-02 16:48:48 UTC) #4
dmazzoni
It looks to me like the goal is for ChromeVox to get a notification when ...
4 years ago (2016-12-02 17:01:43 UTC) #6
David Tseng
On 2016/12/02 17:01:43, dmazzoni wrote: > It looks to me like the goal is for ...
4 years ago (2016-12-02 18:23:54 UTC) #7
DaleCurtis
=>media session owner.
4 years ago (2016-12-02 18:30:08 UTC) #9
David Tseng
I was also thinking we would not want to duck media that's short (e.g. less ...
4 years ago (2016-12-02 19:28:39 UTC) #11
mlamouri (slow - plz ping)
+zqzhang@ FYI lgtm
4 years ago (2016-12-05 13:59:17 UTC) #12
David Tseng
PTAL dmazzoni@. I also added resume and suspend controls. We can have the flexibility to ...
4 years ago (2016-12-08 19:47:45 UTC) #14
dmazzoni
lgtm Please add a linked bug, maybe 621697 https://codereview.chromium.org/2550593003/diff/100001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/2550593003/diff/100001/ui/accessibility/ax_enums.idl#newcode48 ui/accessibility/ax_enums.idl:48: media_started_playing, ...
4 years ago (2016-12-08 20:54:27 UTC) #15
David Tseng
Added BUG. https://codereview.chromium.org/2550593003/diff/100001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/2550593003/diff/100001/ui/accessibility/ax_enums.idl#newcode48 ui/accessibility/ax_enums.idl:48: media_started_playing, On 2016/12/08 20:54:27, dmazzoni wrote: > ...
4 years ago (2016-12-08 22:51:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550593003/120001
4 years ago (2016-12-09 15:19:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/322556)
4 years ago (2016-12-09 15:28:50 UTC) #26
David Tseng
+ avi for content/public/browser
4 years ago (2016-12-09 18:13:12 UTC) #28
David Tseng
Trying different owner + jam for content/public/browser
4 years ago (2016-12-12 19:49:11 UTC) #30
Avi (use Gerrit)
LGTM Please poke me if I ever fail to respond in less than 24h.
4 years ago (2016-12-12 21:54:19 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550593003/120001
4 years ago (2016-12-12 22:46:36 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/276640)
4 years ago (2016-12-13 00:09:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550593003/120001
4 years ago (2016-12-13 15:16:34 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/277085)
4 years ago (2016-12-13 15:38:30 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550593003/160001
4 years ago (2016-12-13 22:58:48 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/325261)
4 years ago (2016-12-13 23:08:22 UTC) #52
David Tseng
+ oshima for chromecast/
4 years ago (2016-12-13 23:10:32 UTC) #54
oshima
On 2016/12/13 23:10:32, David Tseng wrote: > + oshima for chromecast/ I'm afraid that I'm ...
4 years ago (2016-12-13 23:51:53 UTC) #55
David Tseng
+ halliwell@ for chromecast.
4 years ago (2016-12-14 06:09:55 UTC) #57
halliwell
On 2016/12/14 06:09:55, David Tseng wrote: > + halliwell@ for chromecast. chromecast/ lgtm
4 years ago (2016-12-14 15:35:55 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550593003/160001
4 years ago (2016-12-14 15:53:23 UTC) #60
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-14 15:58:35 UTC) #63
commit-bot: I haz the power
4 years ago (2016-12-14 16:00:58 UTC) #65
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e6a3fc3ecf930563d9ad972691e7c8f24c27654f
Cr-Commit-Position: refs/heads/master@{#438525}

Powered by Google App Engine
This is Rietveld 408576698