Fix auto-record egress failing before LiveKit room exists.
Deploy Ladill Meet / deploy (push) Successful in 51s
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user