Search code examples
javascriptcontrolswebrtcbandwidthsdp

is there another way to control the bandwidth of a webRTC session other than with sdp?


I want to know if there is another way to control the bandwidth of a webRTC session other than modifying sdp parameters.?

I ask this because I have read in some old articles that ORTC will replace the Session Description Protocol (SDP) in webRTC.

It is not possible to control the bandwidth automatically just changing the camera resolution?


Solution

  • The maximum bitrate at which media can be encoded/sent is configurable via the RTCRtpSender objects maxBitrate property.

    The webrtc samples have a sample for that since in practice its a bit more tricky due to difference between browsers.