Commit 317f3397 by Kim Peace

Fixed retry camera searching condition

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