尝试将AppRTCDemo应用中的SDP更改为 b = AS:256
仍然没有将其限制在256kbps。
在webrtc-internals中,它显示bitsSentPerSecond大约256kbps,但bitsReceivedPerSecond大约是2mbps!
@Override
public void onCreateSuccess(final SessionDescription origSdp) {
abortUnless(localSdp == null, "multiple SDP create?!?");
String newSdpStr = origSdp.description.replace("a=mid:video", "a=mid:video\r\nb=AS:256");
final SessionDescription sdp = new SessionDescription(
origSdp.type, preferISAC(newSdpStr));
localSdp = sdp;
runOnUiThread(new Runnable() {
public void run() {
pc.setLocalDescription(sdpObserver, sdp);
}
});
}