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

I am testing a peer-to-peer video chat application using webrtc. when I install videos like

var video_constraints = { mandatory: { maxHeight: 120, maxWidth: 160 }, optional: [] }; window.navigator.webkitGetUserMedia({ audio: true, video: video_constraints }, onSuccess, onError); 

this fires in Enrror mode. what could be the reason?

+5
source share
1 answer

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

GetUserMedia restrictions are mapped to a fixed permission list, independent of what the camera actually supports. The list is fixed and used on all platforms.

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

This means that your restrictions will not be met.

Limitations are also documented in the Harald Alvestrand IETF project.

+7
source

Source: https://habr.com/ru/post/970859/


All Articles