New issue
Advanced search Search tips

Issue 648666 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on: View detail
issue 163100
issue 576877



Sign in to add a comment

Use Wrapped Device Id Rather Than Parsing String

Project Member Reported by qiangchen@chromium.org, Sep 20 2016

Issue description

Labels: -Pri-3 Pri-2

Comment 2 by m...@chromium.org, Sep 21 2016

Blockedon: 163100 576877
Cc: m...@chromium.org
Components: Blink>GetUserMedia>Tab
We may not need any kind of structured ID at all.

Basically, as discussed a long while ago in bug 163100 (comments 13 and 19), the plan was to make the tab capture device IDs work like the desktop capture device IDs. Meaning: Whenever the extension API is invoked (with desired settings for the capture device), the request is stored in a registry in the browser process. From then on, a randomly-generated string is all the device ID that is needed.

The huge problem here is how to cross the libcontent boundary into src/chrome/browser/extensions/... I haven't thought all this through yet, but I'm sure it would be quite a bit of plumbing.

Hmm...So maybe we *do* need to just better structure the IDs we have, after all. I'm not sure...
Thanks miu@:

I just noticed that we'd even have the device_id string available to Javascript as [1]. So device_id currently is not purely back end stuff, and thus this is beyond a code refactor fix and requires a thorough design.

[1]https://cs.chromium.org/chromium/src/content/renderer/media/user_media_client_impl.cc?sq=package:chromium&rcl=1474442403&l=672
Status: WontFix (was: Assigned)

Sign in to add a comment