openvidu-components: Released resources when video muting

pull/722/head
csantosm 2022-04-27 14:24:54 +02:00
parent 5a6b0db6f8
commit 0c863e0940
1 changed files with 2 additions and 2 deletions

View File

@ -287,9 +287,9 @@ export class OpenViduService {
/** /**
* @internal * @internal
*/ */
private publishVideoAux(publisher: Publisher, value: boolean): void { private publishVideoAux(publisher: Publisher, publish: boolean): void {
if (!!publisher) { if (!!publisher) {
publisher.publishVideo(value); publisher.publishVideo(publish, true);
this.participantService.updateLocalParticipant(); this.participantService.updateLocalParticipant();
} }
} }