meet-demo: add auto deletion policy for rooms in API request

This commit is contained in:
juancarmore 2025-10-21 18:26:53 +02:00
parent 5a398982d4
commit 4bded9dc33

View File

@ -36,6 +36,10 @@ app.post('/rooms', async (req, res) => {
const room = await httpRequest('POST', 'rooms', {
roomName,
autoDeletionDate: Date.now() + 2 * 60 * 60 * 1000, // Room will be deleted after 2 hours
autoDeletionPolicy: {
withMeeting: 'force', // Force deletion of room even if meeting is ongoing
withRecordings: 'force' // Force deletion of room and its recordings
},
config: {
chat: {
enabled: true