Mute Unmute not wokring in openvidu insecure angular
surya5353 opened this issue · 0 comments
surya5353 commented
Hello All,
Mute and Unmute not working in openvidu insecure angular application. I tried below scenarios but not working in console publisher undefined error comes always.
used below.
https://openvidu.io/docs/cheatsheet/mute-audio-video/
`let publisher: Publisher = this.OV.initPublisher(
undefined,
{
audioSource: undefined, // The source of audio. If undefined default microphone
videoSource: false, // The source of video. If undefined default webcam
publishAudio: true, // Whether you want to start publishing with your audio unmuted or not
publishVideo: false, // Whether you want to start publishing with your video enabled or not
//resolution: "640x480", // The resolution of your video
//frameRate: 30, // The frame rate of your video
//insertMode: "APPEND", // How the video is inserted in the target element 'video-container'
//mirror: false // Whether to mirror your local video or not
}
);
this.session.publish(publisher);
this.mainStreamManager = publisher;
this.publisher = publisher;`
------ Muteunmute code----
onMuteorUnmute(e, ctype) { this.muteUnmute = !this.muteUnmute; publisher.publishAudio(this.muteUnmute); // true to unmute the audio track, false to mute it publisher.publishVideo(this.muteUnmute); // true to enable the video track, false to disable it }
Not working