gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 12:59:15 24 4
gpt4 key购买 nike

如何在语义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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com