livekit / livekit

End-to-end stack for WebRTC. SFU media server and SDKs.
https://docs.livekit.io
Apache License 2.0
10.24k stars 847 forks source link

Empty room timeout adjustment #1776

Open mblazek-moravio opened 1 year ago

mblazek-moravio commented 1 year ago

Hello. I’m trying to extend the empty room timeout. But no matter what I set in

this.client.createRoom({
                name: sessionId,
                emptyTimeout: emptyTimeout,
                maxParticipants: sessionSize
            });

the room is finished after ~30s after last/only participant disconnects. My use case is: Instructor (presenter) joins from eg. firefox, receives warning from our app hat they should join using chrome (due to restrictions in streaming video), so they disconnect, need to log into our app in chrome, find the session and join again. But this usually won’t happen in 30s and in that case (if no one else joins in that time) the instructor can't join the session and needs to create a new one

jimmy-sandoval commented 1 year ago

Hi @mblazek-moravio in my organization we are also having this problem. Thanks for reporting it

lpusz commented 1 year ago

Hello, @mblazek-moravio. Same problem in our current project. We've to do some workarounds.

Any chances to fix it by authors in the near future?

RSC-88 commented 1 year ago

Same problem

wzJun1 commented 1 year ago

Same problem +1

davidzhao commented 1 year ago

I think this is probably a poorly named parameter.. this timeout is the length of time to keep a Room active before a participant joins.

It seems like it would be useful to have a IdleTimeout to keep the Room after the last participant has left? Would that be helpful to folks here?

shoaibsharif commented 11 months ago

@davidzhao I think that's great.

shoaibsharif commented 11 months ago

@davidzhao this issue is here for quite a long time. We are going to production pretty soon. So just wondering if there is any timeline there or not or any work around that?

glennlaysonjr commented 11 months ago

@davidzhao We are running into the same problem now and the latest update is now not even giving us any delay at all. We are running a big application on this service which is becoming a issue for us and our customers. Any word on when this might be fixed?

Tushar-Gupta11 commented 10 months ago

is this is due to RoomDepartureGrace @davidzhao ? giving fixed time if the room is empty after the last participant has left

Tushar-Gupta11 commented 10 months ago

related to #2120 clearly