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;
推荐阅读
- java - Logger 只打印日志消息而不是异常
- python - 在 Python 2.7 中使用 OpenMP
- javascript - 如何检测两个bufferGeometryBox的两个面的交点?
- html - 我网站上的两张图片与其他图片的高度不同
- python - Pyinstaller 可执行文件无法导入 torchvision
- c++ - 迭代时无法读取配置文件
- html - 如何在右下角放置一个静态按钮?
- scala - 你可以模拟一个值而不是一个方法吗?
- jenkins - Jenkins X 错误:找不到秘密“jenkins”
- html - 当背景颜色为黑色时,白色 svg 图标不可见