【问题标题】:how to set unified plan in semantics webrtc android如何在语义webrtc android中设置统一计划
【发布时间】:2020-04-15 13:18:11
【问题描述】:

如何在语义Webrtc android中设置统一计划。 我需要将它添加到 SDP。我试过下面的代码,但它不工作

       rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN

【问题讨论】:

    标签: webrtc webrtc-android


    【解决方案1】:

    我做了这样的事情并且它有效。试试看:

    rtcConfiguration = new PeerConnection.RTCConfiguration(iceServers);
    rtcConfiguration.iceTransportsType = PeerConnection.IceTransportsType.ALL;
    rtcConfiguration.iceCandidatePoolSize = 2;
    rtcConfiguration.bundlePolicy = PeerConnection.BundlePolicy.MAXCOMPAT;
    rtcConfiguration.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN;
    rtcConfiguration.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;
    rtcConfiguration.candidateNetworkPolicy = PeerConnection.CandidateNetworkPolicy.ALL;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-26
      • 1970-01-01
      • 1970-01-01
      • 2011-01-19
      相关资源
      最近更新 更多