opentok / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
MIT License
30 stars 80 forks source link

publisher.publishVideo() function is not working on Mobile Devices #192

Open abdec2 opened 4 years ago

abdec2 commented 4 years ago

i have created an ionic application where i am using opentok api to implement video call. everything is working fine. i implement the functionality to turn On and Turn Off Camera by using publisher.publishVideo() function, the same way i implemented mute and unmute functionality of microphone by using publisher.publishAudio().

the problem is publishAudio() is working fine. but publishVideo() is working on web and not working on other platforms like android and ios.

rramosj2 commented 3 years ago

How did you implement the publishAudio? I am trying this.publisher.setPublishAudio(false); but it does not seem to make any difference.

simplelifeic commented 3 years ago

How did you implement the publishAudio? I am trying this.publisher.setPublishAudio(false); but it does not seem to make any difference.

Instead of this.publisher.setPublishAudio(false) you have to call this.publisher.publishAudio(false)