I'm having problems with the OpenTok 2 API . When I start to publish the stream, and I will be asked to allow or deny the website to use my webcam and microphone, if I permit (), it should be done, but if I deny that denied () should work.
publisher.addEventListener('accessAllowed', allowed);
publisher.addEventListener('accessDenied', denied);
function allowed() {
console.log('Allowed');
}
function denied() {
console.log('Denied');
}
It works as expected in Firefox. However, in accessAllowed Chrome, accessDenied works. Instead, I get the following error:
OT.Publisher.onStreamAvailableError PermissionDeniedError:
TB.exception :: title: Internal Error (2000) msg: Publisher failed to access camera/mic:
Any ideas?
lawls source
share