Getting RTCpeerconnection object of participants in twilio video api

孤者浪人 提交于 2019-12-12 05:49:37

问题


I need to implement signalling between peers in a many to many video conference. To do that i need access to the RTC Data Channel. Since "Twilio Video API" doesn't yet provide Data Channel, should I use "Twilio Conversations API" for this task as it provides access to the RTCPeerConnection Object which can be used to create data channels which i found over here:

Or is there a way to get the RTCPeerConnection object of other peers in "Twilio Video API" itself?


回答1:


Twilio developer evangelist here.

The Twilio Conversations API is deprecated so you should not use that.

There's no official way to get access to the RTCPeerConnection object within the Video API. I haven't found an unofficial way yet myself (though I'm sure there is, given that JavaScript doesn't really have private methods/properties).

If you definitely need the RTCDataChannel itself then you might not want to build with the Twilio Video API.

However, if you are looking to signal between peers, then perhaps the Twilio Sync API, which is a real time API for syncing data between clients and works really well alongside Twilio Video, can help.



来源:https://stackoverflow.com/questions/45027499/getting-rtcpeerconnection-object-of-participants-in-twilio-video-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!