无法使用b = AS在Android应用中设置带宽

时间:2014-09-06 17:50:21

标签: android webrtc

尝试将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);
          }
        });
     }

0 个答案:

没有答案