numerous-whale-53652
10/04/2025, 4:56 PMtall-airline-16756
10/04/2025, 4:56 PMtall-airline-16756
10/04/2025, 4:56 PMdeparture_timeout in the config-sample.yaml file under room settings. For example:
room:
departure_timeout: 20 # Room stays open for 20 seconds after last participant leaves
• During Room Creation: If you want to customize it when creating a room, you can specify the departure_timeout value directly using the CLI or API. For instance, with the CLI:
lk room create ROOM_NAME --departure-timeout 30
• Using SDKs: The departure_timeout field is part of the CreateRoomRequest message in LiveKit’s protocol buffers, so you can set it when creating a room through SDKs like the Python SDK. These SDKs also let you check this value during runtime.
Just to clarify, the timeout is in seconds and it makes sure the room stays active for that amount of time after the last participant leaves before closing automatically. If you have any more questions or need help setting this up, feel free to ask—I'm here to support you!
Sources: livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | config-sample.yaml | cmd/lk/room.go | protobufs/livekit_room.protonumerous-whale-53652
10/04/2025, 4:59 PMtall-airline-16756
10/04/2025, 4:59 PMnumerous-whale-53652
10/04/2025, 5:00 PMtall-airline-16756
10/04/2025, 5:00 PMdeparture_timeout in the config-sample.yaml file under room settings. For example:
room:
departure_timeout: 20 # Room stays open for 20 seconds after last participant leaves
• During Room Creation: You can specify the departure_timeout value explicitly when creating a room via the CLI or API. For example, using the CLI:
lk room create ROOM_NAME --departure-timeout 30
• Using SDKs: When creating a room programmatically, set the departure_timeout field in the CreateRoomRequest message. SDKs like the Python SDK also let you get or set this value at runtime.
If you'd like, I’m here to guide you through any specific method you want to try—just let me know!