[Bug 22101] Need a persistent means in JS to select specific camera (or microphone)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22101

Adam Bergkvist <adam.bergkvist@ericsson.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam.bergkvist@ericsson.com

--- Comment #3 from Adam Bergkvist <adam.bergkvist@ericsson.com> ---
(In reply to comment #2)
> No, the sourceId does not persist after reloading the page and can thus not
> be used in JavaScript. What I am looking for is a persistent way to identify
> cameras and a means to select these cameras in a gUM call through
> constraints.

The sourceId does indeed remain the same after a page reload.

>From the spec:
"sourceId of type DOMString
    The application-unique identifier for this source. The same identifier must
be valid between sessions of this application, but must also be different for
other applications. Some sort of GUID is recommended for the identifier.
Returned for all types of sources (video, audio, etc.). "

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Wednesday, 22 May 2013 06:49:37 UTC