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

标签 webrtc webrtc-android

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

       rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN

最佳答案

我做这样的事情,它的工作原理。试一试:

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;

关于webrtc - 如何在语义webrtc android中设置统一计划,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61229740/

相关文章:

java - 如何使用 sdp 详细信息在 "offer"端点上调用 POST 方法?

android - 我可以将 Web RTC 应用程序注册为调用应用程序吗

android - Webrtc Android : Screen Sharing stopped working on API 29 (Android 10)

javascript - 使用 Kurento 媒体服务器在 Chrome 中获取 "ScreenCaptureError"

webrtc - Kurento WebRTC 连接在约 30% 的情况下失败

webrtc - 在 TURN 配置中无法访问 NAT 后面的 Coturn

javascript - 如何在没有浏览器或任何 HTML 的情况下在 Node.js 中使用 WebRTC API?

WebRTC:如何为视频编码器启用硬件加速

android - 如何提高手机的麦克风灵敏度