Skip to content

Set bandwidth for the app

DengQiming edited this page Jan 12, 2018 · 1 revision

The application can specify the maximum bandwidth used by video, audio and content sharing.

phone.setAudioMaxBandwidth(64000); // 64kbps for voice
phone.setVideoMaxBandwidth(2000000); // 2Mbps for 1280x720 resolution
phone.setShareMaxBandwidth(4000000); // 4Mbps for content share

The unit of bandwidth is kbps.

The SDK uses the TIAS (Transport Independent Application Specific) maximum bandwidth modifier in the SDP to implement this functionality.

For more details, please see RFC3890