Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

iOS camera and microphone permissions management #3

Open
aoberoi opened this issue Jun 23, 2015 · 1 comment
Open

iOS camera and microphone permissions management #3

aoberoi opened this issue Jun 23, 2015 · 1 comment

Comments

@aoberoi
Copy link
Owner

aoberoi commented Jun 23, 2015

Currently, trying to initialize a Publisher with audio/video enabled but while the user has permission denied, the application crashes.

We should aim to gracefully handle such situations with the publisher events: 'accessAllowed', 'accessDenied', 'accessDialogOpened', 'accessDialogClosed'.

Is there a way to detect that the permissions have been denied from Cordova's JS environment?

@mark-veenstra
Copy link
Contributor

If this is related to the cordova-plugin-iosrtc, this issue is fixed since version 2.0.1.

Regarding the detection of permissions, I am not sure if this is possible in Cordova. You could try to look into the errorCallback on getUserMedia, maybe this error object gives you some input. For example use rtcninja

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

No branches or pull requests

2 participants