test: Add 8 people voice tests

This commit is contained in:
2026-04-18 14:19:59 +02:00
parent bd21568726
commit 167c45ba8d
17 changed files with 2044 additions and 232 deletions

View File

@@ -53,6 +53,14 @@ export class VoiceConnectionFacade {
return this.realtime.getRawMicStream();
}
reportConnectionError(message: string): void {
this.realtime.reportConnectionError(message);
}
clearConnectionError(): void {
this.realtime.clearConnectionError();
}
async enableVoice(): Promise<MediaStream> {
return await this.realtime.enableVoice();
}

View File

@@ -235,8 +235,15 @@ export class VoiceControlsComponent implements OnInit, OnDestroy {
this.voicePlayback.playPendingStreams(this.playbackOptions());
// Persist settings after successful connection
this.webrtcService.clearConnectionError();
this.saveSettings();
} catch (_error) {}
} catch (error) {
const message = error instanceof Error
? error.message
: 'Failed to connect voice session.';
this.webrtcService.reportConnectionError(message);
}
}
// Retry connection when there's a connection error