0
votes

Is there a way to end a room once one of the participants leave?

I found a way to do it using the REST API: set a status callback and when the event is participant-disconnected, update the Room's status to completed.

But I'm wondering if there's a way to do it only with TWIML to be able to do it with my TWIML Bin to reduce complexity.

1

1 Answers

3
votes

Twilio Programmable Video Rooms do not utilize TwiML, with the exception of Programmable Voice users joining a Programmable Video room using the verb.

Your current approach using Room Status Call Backs sounds like an ideal approach, complete a room.