Commit 317f3397 by Kim Peace

Fixed retry camera searching condition

parent c00c7cfd
......@@ -45,6 +45,16 @@ CoviewBridge.bindStartEvent = function () {
};
CollaborationFeature.checkAndRetryCamera = async function () {
console.log(
"peacekim:: CollaborationFeature.checkAndRetryCamera deviceInfo.isAndroid: " +
deviceInfo.isAndroid() +
", globalUserInfo.collaborationType: " +
globalUserInfo.collaborationType +
", COLLABORATION_TYPE.VIDEO: " +
COLLABORATION_TYPE.VIDEO +
", g_newStream: " +
g_newStream
);
if (!deviceInfo.isAndroid) {
return;
}
......@@ -54,6 +64,9 @@ CollaborationFeature.checkAndRetryCamera = async function () {
if (g_newStream != null) {
return;
}
console.log(
"peacekim:: CollaborationFeature.checkAndRetryCamera retry camerastream"
);
try {
const cameraStream = await navigator.mediaDevices.getUserMedia(
options.constraints
......
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