openvidu-testapp: revert unpublish video change

pull/672/merge
pabloFuente 2022-07-27 18:12:50 +02:00
parent 4a846c5f56
commit 755de51c2a
1 changed files with 1 additions and 5 deletions

View File

@ -230,11 +230,7 @@ export class VideoComponent implements OnInit, OnDestroy {
pubUnpubVideo() {
const publisher: Publisher = <Publisher>this.streamManager;
this.videoMuted = !this.videoMuted;
if (this.videoMuted === true) {
publisher.publishVideo(false, true);
} else {
publisher.publishVideo(true);
}
publisher.publishVideo(!this.videoMuted);
this.pubSubVideoIcon = this.videoMuted ? 'videocam_off' : 'videocam';
}