nirmoo
nirmoo

Reputation: 23

Getting RTCpeerconnection object of participants in twilio video api

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?

Upvotes: 0

Views: 380

Answers (1)

philnash
philnash

Reputation: 73065

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.

Upvotes: 1

Related Questions