From 1898057e2a2b617524a1cfb100fbe2dd921d2daa Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 27 Oct 2022 12:49:42 +0200 Subject: [PATCH] openvidu-components: Fixed white screen without media devices --- .../components/videoconference/videoconference.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts index c0e61891..705f04e1 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts @@ -451,6 +451,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni this.isSessionInitialized = true; this.onParticipantCreated.emit(this.participantService.getLocalParticipant()); this.loading = false; + this.participantReady = true; } private async initwebcamPublisher(): Promise { @@ -465,7 +466,6 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni }); publisher.once('accessAllowed', async () => { await this.handlePublisherSuccess(); - this.participantReady = true; resolve(); }); } @@ -666,7 +666,6 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni private async handlePublisherError(e: any): Promise { let message: string = ''; - console.log('ERROR!', e); if (e.name === OpenViduErrorName.DEVICE_ALREADY_IN_USE) { this.log.w('Video device already in use. Disabling video device...'); // Allow access to the room with only mic if camera device is already in use