test: Add 8 people voice tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user