ric*_*hah 5 webrtc webrtc-android
如何在Webrtc android中设置统一的语义计划。我需要将其添加到 SDP 中。我已经尝试过下面的代码,但它不起作用
rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN
Run Code Online (Sandbox Code Playgroud)
我做了这样的事情并且它有效。试一试:
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)
| 归档时间: |
|
| 查看次数: |
1354 次 |
| 最近记录: |