getting multiple resolutions from getUserMedia

405 views
Skip to first unread message

Eric Davies

unread,
Jul 17, 2013, 2:02:56 PM7/17/13
to discuss...@googlegroups.com
At the WebRTC conference in Atlanta, a number of people broached the issue of wanting change video resolutions on the fly. This didn't seem like a big challenge, just call getUserMedia again with a different resolution. However, when I actually try calling getUserMedia what I notice  (in Chrome) is that resolution of the first getUserMedia call is sticky, subsequent calls produce media streams with the same resolution as the first call. I've attached an html file that demonstrates this. I'm using Version 28.0.1500.72 m on a Windows 7 Thinkpad.

My interpretation of what is happening is that the getUserMedia is asking the webcam to provide an image in the desired resolution, and the webcam can only produce a single video stream. Is there any way I can get the video stream from the webcam and produced scaled video streams from it? 

As a use case, imagine you are having a multiparty conversation, two guys on desktops and one guy on a mobile device. The mobile device doesn't have the processing power to handle a couple of 640x480 video streams simultaneously so you'd like to send the mobile device the 320x240 stream, but you'd like the guys on the desktops to see 640x480 streams of each other.






resolution_test.html

Vikas

unread,
Jul 17, 2013, 7:10:17 PM7/17/13
to discuss...@googlegroups.com
Hi,

Thanks for the feedback, this looks related to this issue : https://code.google.com/p/chromium/issues/detail?id=160264#c14

/Vikas 

Eric Davies

unread,
Jul 17, 2013, 9:37:13 PM7/17/13
to discuss...@googlegroups.com
Hi Vikas,

Following the chain of related, the next one after is an exact match.

Eric.


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/EeSNTOVnptw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Eric Davies
Reply all
Reply to author
Forward
0 new messages