openvidu-components: Fixed white screen without media devices

pull/748/head
Carlos Santos 2022-10-27 12:49:42 +02:00
parent fffc100623
commit 1898057e2a
1 changed files with 1 additions and 2 deletions

View File

@ -451,6 +451,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
this.isSessionInitialized = true; this.isSessionInitialized = true;
this.onParticipantCreated.emit(this.participantService.getLocalParticipant()); this.onParticipantCreated.emit(this.participantService.getLocalParticipant());
this.loading = false; this.loading = false;
this.participantReady = true;
} }
private async initwebcamPublisher(): Promise<void> { private async initwebcamPublisher(): Promise<void> {
@ -465,7 +466,6 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
}); });
publisher.once('accessAllowed', async () => { publisher.once('accessAllowed', async () => {
await this.handlePublisherSuccess(); await this.handlePublisherSuccess();
this.participantReady = true;
resolve(); resolve();
}); });
} }
@ -666,7 +666,6 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
private async handlePublisherError(e: any): Promise<void> { private async handlePublisherError(e: any): Promise<void> {
let message: string = ''; let message: string = '';
console.log('ERROR!', e);
if (e.name === OpenViduErrorName.DEVICE_ALREADY_IN_USE) { if (e.name === OpenViduErrorName.DEVICE_ALREADY_IN_USE) {
this.log.w('Video device already in use. Disabling video device...'); 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 // Allow access to the room with only mic if camera device is already in use