Is it possible to implement one-to-many WebRTC video room using Twilio Video API?

926 Views Asked by At

Is it possible to implement one-to-many WebRTC video room using Twilio Video API? One publisher and many subscribers. Webinar.

2

There are 2 best solutions below

0
On BEST ANSWER

philnash answered in the related topic that it's impossible at the moment.

2
On

Do you mean a group room instead of a peer-to-peer room? This is possible, and they announced in May'17 an increase in the number of users per room up to 50.

In their documentation and tutorials there is an example on how to start a group room and how to configure it. See this link. You can see how to implement it on different languages. :)


EDIT:

So I don't think you can create the room specifying a user id who would be the presenter, and then automatically all others who join would be just spectators.

Now, when joining a room with Video.connect, you can specify options for audio and video, like:

var Video = require('twilio-video');

// Connect to the Room with just audio
Video.connect('my-token', {
  name: 'my-room-name',
  audio: true
});

You can see more on how to join and the options you can specify here. So you could always wrap this in your code, and force every other viewer to not send video.