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() {
|
pubUnpubVideo() {
|
||||||
const publisher: Publisher = <Publisher>this.streamManager;
|
const publisher: Publisher = <Publisher>this.streamManager;
|
||||||
this.videoMuted = !this.videoMuted;
|
this.videoMuted = !this.videoMuted;
|
||||||
if (this.videoMuted === true) {
|
publisher.publishVideo(!this.videoMuted);
|
||||||
publisher.publishVideo(false, true);
|
|
||||||
} else {
|
|
||||||
publisher.publishVideo(true);
|
|
||||||
}
|
|
||||||
this.pubSubVideoIcon = this.videoMuted ? 'videocam_off' : 'videocam';
|
this.pubSubVideoIcon = this.videoMuted ? 'videocam_off' : 'videocam';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue