Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mute Unmute not wokring in openvidu insecure angular #16

Open
surya5353 opened this issue Dec 23, 2019 · 0 comments
Open

Mute Unmute not wokring in openvidu insecure angular #16

surya5353 opened this issue Dec 23, 2019 · 0 comments

Comments

@surya5353
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant