Can getUserMedia return multiple mediastreams?

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 one camera
can we use. We can not let JS to choose which camera can use, or use all the cameras
at the same time to manipulate the camera chosen for face detection.

So, can we in future media capture draft 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(MediaStreamList or MediaStream[] type etc)
{
while(i<MediStreamList.length)
{
if MediaStreamList(i).quality>5
video.src=url.createObjectURL(MediaStreamList(i))
break;
......
}
}

Thanks a lot
Expecting for feedback.



________________________________
孙扬
华为技术有限公司 Huawei Technologies Co., Ltd.
[Company_logo]

Phone: +86 25 56622934
Fax: +86 25 56624081
Mobile: +86 13851889004
Email: eric.sun@huawei.com
地址:南京市雨花区软件大道101号 华为南京基地 邮编:210012
Huawei Technologies Co., Ltd.
No 101,Software Avenue, Yuhua District,Nanjing 518129, P.R.China
http://www.huawei.com

________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

Received on Friday, 1 June 2012 09:23:28 UTC