4

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

       rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN
4

1 回答 1

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;
于 2020-12-02T16:25:47.890 回答