Commit 7665fa80 by Kim Peace

Added to exist collaboration camera permission not allowed

parent 8aae5d00
......@@ -163,6 +163,21 @@ CoviewBridge.bindMessageEvent = function () {
};
CollaborationFeature.didReceiveLoginResponseMessage = async function () {
try {
await navigator.mediaDevices.getUserMedia({ audio: true, video: true });
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
setTimeout(function () {
togglePhotoOpenPlaceHolder();
}, 8000);
}
} catch (err) {
if (err.name == "NotAllowedError") {
CoviewBridge.exitCollaboration();
return;
}
}
const isDocument =
globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT;
const isAttendee =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment