This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
now there is navigator.getUserMedia() function for html5 But JavaScript can only return 1 stream returned by getUserMedia can capture the stream by successCallback. For example: getUserMedia({video:true},successCallback,errorCallback) function successCallback(stream) { video.src = URL.createObjectURL(stream) } Now when we develop some face detection feature using html5, we have 2 or more camera connect to browser, but only by browser UI can we choose which camera can we use.We can not let JS to choose which camera can use, then use JS to manipulate the camera chosen for face detection. So, can we in future HTML let getUserMedia return references for all available cameras connect to browser in a array, so we can iterate streams and let JS to choose the one we want for later processing, Or in some 3D scenario, to manipulate multiple streams from cameras to show some 3D scene. for example a better quality camera for face detection. And streams Array returned by getUserMedia can contain quality information (1 standard for 1 mega-pixel, 5 standard for mega-pixel )or optionally the description of the camera, so JS can choose by filtering or comparision. For example: getUserMedia({video:true},successCallback,errorCallback) function successCallback((Array type)streams) { while(i<streams.length) { if streams(i).quality>5 video.src=url.createObjectURL(stream(i)) break; ...... } }
I think is being discussed at TPAC
list on this TPAC's agenda? (In reply to comment #1) > I think is being discussed at TPAC
Media Capture Task Force: http://www.w3.org/wiki/Oct_30_2012 Bullet point "Device enumeration API"
Any material for introduction to Device enumeration API? (In reply to comment #3) > Media Capture Task Force: http://www.w3.org/wiki/Oct_30_2012 > > Bullet point "Device enumeration API"
http://www.gnote.org hosts what you may consider a workaround plug 2 cameras in, visit page wfm recent Chrome filed bug: Support more than one camera at a time Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=835332 Opera DSK-381490@bugs.opera.com
this needs to be discussed on the list not in bug tracker.
#6 Cullen, this bug should not be closed by you as fixed. No action has as yet been taken that results in that state being achieved.
Please contribute to public-media-capture@w3.org. We are not using the bugzilla for requesting new features.