W3C home > Mailing lists > Public > public-media-capture@w3.org > June 2012

Can getUserMedia return multiple mediastreams?

From: Sunyang (Eric) <eric.sun@huawei.com>
Date: Fri, 01 Jun 2012 02:31:10 +0000
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-id: <9254B5E6361B1648AFC00BA447E6E8C31C81C086@SZXEML501-MBS.china.huawei.com>
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:
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:
function successCallback(MediaStreamList or MediaStream[] type etc)
if MediaStreamList(i).quality>5

Thanks a lot
Expecting for feedback.

华为技术有限公司 Huawei Technologies Co., Ltd.

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

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!

(image/jpeg attachment: image001.jpg__size_6737__creation-date_)

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:10 UTC