openvidu-components: Updated local participant after toggling video

pull/809/head
Carlos Santos 2023-03-01 13:02:05 +01:00
parent 3175b5d328
commit 504a9a915e
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,6 @@ export class ParticipantService {
this.disableWebcamStream();
this.openviduService.unpublishCamera(cameraPublisher);
this.publishAudioAux(screenPublisher, publishAudio);
this.updateLocalParticipant();
} else if (this.isOnlyMyScreenActive()) {
// Enabling webcam
const hasAudio = this.hasScreenAudioActive();
@ -92,11 +91,12 @@ export class ParticipantService {
this.publishAudioAux(screenPublisher, false);
this.publishAudioAux(cameraPublisher, hasAudio);
this.enableWebcamStream();
this.updateLocalParticipant();
} else {
// Muting/unmuting webcam
await this.publishVideoAux(cameraPublisher, publish);
}
this.updateLocalParticipant();
}
/**