Fix auto-record egress failing before LiveKit room exists.
Deploy Ladill Meet / deploy (push) Successful in 51s

Create rooms via the LiveKit API, retry egress when the room is missing, and resume server egress after the host connects when auto-record fell back to browser capture.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-04 09:53:44 +00:00
co-authored by Cursor
parent d2bf08ec45
commit 64df3d1eb1
6 changed files with 162 additions and 13 deletions
+19
View File
@@ -1749,6 +1749,12 @@ function meetRoom() {
if (existingUuid) {
this.activeRecordingUuid = existingUuid;
if (this.serverEgress && !this.usesServerEgressCapture()) {
await this.resumeServerEgress();
if (this.usesServerEgressCapture()) {
return;
}
}
} else {
await this.startServerRecording();
return;
@@ -1780,6 +1786,19 @@ function meetRoom() {
}
},
async resumeServerEgress() {
const res = await fetch(this.config.recordingStartUrl, { method: 'POST', headers: this.headers() });
if (!res.ok) {
return;
}
const data = await res.json();
this.activeRecordingUuid = data.recording_uuid || this.activeRecordingUuid;
if (data.capture_mode) {
this.recordingCaptureMode = data.capture_mode;
}
},
async startServerRecording() {
const res = await fetch(this.config.recordingStartUrl, { method: 'POST', headers: this.headers() });
if (!res.ok) return;