Set audio/video bitrates and framerates
connection.bandwidth = { audio: 50, // 50 kbps video: 256, // 256 kbps screen: 300 // 300 kbps };
parameter | description |
---|---|
audio | audio bitrates. Minimum 6 kbps and maximum 510 kbps |
video | video framerates. Minimum 100 kbps; maximum 2000 kbps |
screen | screen framerates. Minimum 300 kbps; maximum 4000 kbps |
<script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script> <script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script> <script> var connection = new RTCMultiConnection(); // this line is VERY_important connection.socketURL = 'https://rtcmulticonnection.herokuapp.com:443/'; // if you want audio+video conferencing connection.session = { audio: true, video: true }; connection.bandwidth = { audio: 50, // 50 kbps video: 256 // 256 kbps }; connection.openOrJoin('your-room-id'); </script>