mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated local participant after toggling video
parent
3175b5d328
commit
504a9a915e
|
@ -81,7 +81,6 @@ export class ParticipantService {
|
||||||
this.disableWebcamStream();
|
this.disableWebcamStream();
|
||||||
this.openviduService.unpublishCamera(cameraPublisher);
|
this.openviduService.unpublishCamera(cameraPublisher);
|
||||||
this.publishAudioAux(screenPublisher, publishAudio);
|
this.publishAudioAux(screenPublisher, publishAudio);
|
||||||
this.updateLocalParticipant();
|
|
||||||
} else if (this.isOnlyMyScreenActive()) {
|
} else if (this.isOnlyMyScreenActive()) {
|
||||||
// Enabling webcam
|
// Enabling webcam
|
||||||
const hasAudio = this.hasScreenAudioActive();
|
const hasAudio = this.hasScreenAudioActive();
|
||||||
|
@ -92,11 +91,12 @@ export class ParticipantService {
|
||||||
this.publishAudioAux(screenPublisher, false);
|
this.publishAudioAux(screenPublisher, false);
|
||||||
this.publishAudioAux(cameraPublisher, hasAudio);
|
this.publishAudioAux(cameraPublisher, hasAudio);
|
||||||
this.enableWebcamStream();
|
this.enableWebcamStream();
|
||||||
this.updateLocalParticipant();
|
|
||||||
} else {
|
} else {
|
||||||
// Muting/unmuting webcam
|
// Muting/unmuting webcam
|
||||||
await this.publishVideoAux(cameraPublisher, publish);
|
await this.publishVideoAux(cameraPublisher, publish);
|
||||||
}
|
}
|
||||||
|
this.updateLocalParticipant();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue