mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: revert unpublish video change
parent
4a846c5f56
commit
755de51c2a
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue