Search code examples
twiliovideo-conferencing

How can we create a Twilio Video Room that doesn’t get destroyed within 5 minutes of creation if participants do not join?


My use case involves creation of a peer-peer room using the Twilio Video REST API. I understand from the documentation that the room gets auto destroyed if no participant enters the room within 5mins of the room creation. This is becoming a bit difficult to manage as our use case doesn’t guarantee the participant entry time. Any workaround here?


Solution

  • Twilio developer evangelist here.

    I would recommend creating the room at the same time that the first participant joins the room. That way you don't have to worry about it timing out.

    Create the room and the access token at the same time and at the time you need it, not before.