Constraints and Statistics

This page is meant to give some hints on how one can use constraints and statistics in WebRTC applications.

The form to the left gives constraints you can set on the getUserMedia call. When you hit "open", it will (re)open the camera with these constraints.

The left picture is the local preview. The right picture is the picture after being passed through the PeerConnection (locally).

Underneath the picture you will see a running display of how many Kbits/sec the video feed uses for transmission.


getUserMedia constraints

MinMax
Horizontal 300-640
Vertical 200-480
FrameRate 30

addStream constraints

Maximum bitrate 1000

Bitrate unknown

Statistics report display

Stats will appear here.