openvidu-testapp: revert unpublish video change
This commit is contained in:
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…
x
Reference in New Issue
Block a user