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

NSCameraUsageDescription Disable #161

Closed p-sebastian closed 5 years ago

p-sebastian commented 5 years ago

A way to entirely disable camera usage on plugin, since I use it for SIP interconnect, I just need the audio but I can't get it to not require the camera, as well as disable the creation of the view element for the video, which results in some ugly black boxes.

This is on both iOS/android. using latest cordova, plugin, and on ionic v3

msach22 commented 5 years ago

@p-sebastian If you do not want to initialize the camera at all, please set the videoSource property of initPublisher to false: https://github.com/opentok/cordova-plugin-opentok/blob/master/docs/ot.md#initPublisher

This will not prompt the user for the Camera permissions.