OpenTok 2 APIに問題があります。ストリームの公開を開始すると、Web サイトでの Web カメラとマイクの使用を許可または拒否するよう求められます。
publisher.addEventListener('accessAllowed', allowed);
publisher.addEventListener('accessDenied', denied);
function allowed() {
console.log('Allowed');
}
function denied() {
console.log('Denied');
}
Firefox では期待どおりに動作します。Chrome では accessAllowed は機能しますが、accessDenied は機能しません。代わりに、次のエラーが表示されます。
OT.Publisher.onStreamAvailableError PermissionDeniedError:
TB.exception :: title: Internal Error (2000) msg: Publisher failed to access camera/mic:
何か案は?