简体   繁体   English

WEBRTC:在创建RtcPeerConnection之后添加眩晕/转向服务器配置

[英]WEBRTC : Adding stun/turn server configuration after RtcPeerConnection creation

Hi i have a problem while i am implementing trickle ice. 嗨,我在实施trick流冰时遇到问题。 We decided to wait just for host candidates while sending to initial offer because of c line 0.0.0.0 ip issue. 由于c线0.0.0.0 ip问题,我们决定只等待寄宿生发送原始报价。 But how can we do it i couldnt find any event that " this types of candidates was finished so starting next types gatherings" . 但是我们怎么做呢,我找不到任何事件“这种类型的候选人已经结束,所以开始下一次类型的聚会”。 so we decided to 所以我们决定

  • create a peer object but no stun /turn config 创建一个对等对象,但不眩晕/ turn配置
  • take host candidates ( waiting for the end because of no stun / turn config ) 接受主持人候选人(由于没有眩晕,所以等待结束/打开配置)
  • the. 的。 send initial offer 发送初始报价
  • adding stun turn server config 添加眩晕转服务器配置
  • and then we sent to new type of (reflexive or relay) candidates to server. 然后我们将新类型的(自反或中继)候选人发送到服务器。

But we couldnt find how to add stun turn server config to existing object . 但是我们找不到如何将stun turn服务器配置添加到现有对象。 In the firefox docs "Events such as adding a new interface or a new TURN server will cause the state to go back to gathering." 在firefox文档中,“添加新接口或新TURN服务器之类的事件将导致状态恢复到收集状态。” but we couldnt find 但是我们找不到

Any different approach to that problem would be accepted. 任何解决该问题的方法都可以接受。

在对等连接生命周期内添加TURN服务器是通过http://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-setConfiguration-void-RTCConfiguration-configuration完成的-但是afaik Chrome和Firefox都尚未实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM