如何在语义webrtc android中设置统一计划

ric*_*hah 5 webrtc webrtc-android

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

       rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN
Run Code Online (Sandbox Code Playgroud)

Pau*_*iva 2

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

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;
Run Code Online (Sandbox Code Playgroud)