Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the minimum resolution we can set for webrtc video?

I am testing a peer to peer video chat app using webrtc. when I set the video contraints as

var video_constraints = {
    mandatory: {
        maxHeight: 120,
        maxWidth: 160 
    },
    optional: []
};

window.navigator.webkitGetUserMedia({
    audio: true,
    video: video_constraints
}, onSuccess, onError);

this fires onError. what could be the reason?

like image 934
Mano Avatar asked May 29 '13 03:05

Mano


People also ask

How do I reduce video quality in WebRTC?

The video stream provided by getUserMedia should give you uncompressed video at the highest quality available from the camera hardware. There is no way to adjust the camera settings; they are fully automatic, controlled by the camera driver and/or operating system.

Does WebRTC support 1080p?

Most WebRTC implementations to date have been able to reach 720p resolutions, with 1080p starting to be introduced.


1 Answers

To quote from code.google.com/p/chromium/issues/detail?id=143631#c9:

GetUserMedia constraints are matched with a fixed list of resolutions independent on what the camera actually support. The list is fixed and used on all platforms.

1280, 720,
960, 720,
640, 360,
640, 480,
320, 240,
320, 180

This means your constraints will fail.

Constraints are also documented in Harald Alvestrand's IETF draft.

like image 145
Sam Dutton Avatar answered Sep 30 '22 15:09

Sam Dutton