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

Issue 2547633002: Desktop Capture API: Pass Audio Selection Information To Javascript (Closed)

Created:
4 years ago by qiangchen
Modified:
4 years ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Desktop Capture API: Pass Audio Selection Information To Javascript The API mediaDevices.getUserMedia will throw an exception if the caller requests audio but we cannot provide. Here is the situation for desktop capture, the user could uncheck the audio check box, and thus revoke the audio share. But the current setting of chooseDesktopMedia does not pass this piece of information to Javascript, which will put the caller into a dilemma whether to request audio or not in getUserMedia call. BUG=670407 Committed: https://crrev.com/9ec1ad9cf69edcb08db2237ddb1b4b4f293491ab Cr-Commit-Position: refs/heads/master@{#438351}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use Object #

Total comments: 10

Patch Set 3 : Style #

Patch Set 4 : Browser Test Case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -24 lines) Patch
M chrome/browser/extensions/api/desktop_capture/desktop_capture_apitest.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/extensions/api/desktop_capture.json View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/desktopCapture/app.js View 1 2 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/desktop_capture_custom_bindings.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/desktop_capture/test.js View 1 2 3 3 chunks +27 lines, -15 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
qiangchen
Hi, Ken Can you take a look at this CL? Or any better idea to ...
4 years ago (2016-12-01 19:49:43 UTC) #3
Ken Rockot(use gerrit already)
Maybe this needs some more careful API review consideration. Over to Devlin.
4 years ago (2016-12-05 20:37:36 UTC) #5
qiangchen
On 2016/12/05 20:37:36, Ken Rockot wrote: > Maybe this needs some more careful API review ...
4 years ago (2016-12-06 18:25:45 UTC) #6
qiangchen
ping Devlin. Can you have some input?
4 years ago (2016-12-08 18:32:35 UTC) #7
Devlin
I don't love the solution, but I can't really think of anything better either if ...
4 years ago (2016-12-08 19:09:44 UTC) #8
qiangchen
Thanks. Fixed by your suggestion. The failure of getUserMedia is aligned with spec. So we ...
4 years ago (2016-12-08 20:01:28 UTC) #9
qiangchen
Any way I can progress? Thanks.
4 years ago (2016-12-12 21:04:03 UTC) #10
Devlin
Sorry for the delay; was traveling and this got lost in the shuffle. Thanks for ...
4 years ago (2016-12-13 16:05:45 UTC) #11
qiangchen
Fix the style issue and added api test cases. https://codereview.chromium.org/2547633002/diff/20001/chrome/common/extensions/api/desktop_capture.json File chrome/common/extensions/api/desktop_capture.json (right): https://codereview.chromium.org/2547633002/diff/20001/chrome/common/extensions/api/desktop_capture.json#newcode49 chrome/common/extensions/api/desktop_capture.json:49: ...
4 years ago (2016-12-13 19:04:33 UTC) #13
Devlin
lgtm
4 years ago (2016-12-13 21:41:58 UTC) #14
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/2547633002/80001
4 years ago (2016-12-13 22:34:17 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-14 00:12:24 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-14 00:15:49 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9ec1ad9cf69edcb08db2237ddb1b4b4f293491ab
Cr-Commit-Position: refs/heads/master@{#438351}

Powered by Google App Engine
This is Rietveld 408576698