Commit e3a6ff12 by Takatoshi Miura

#43232_in-camera_画像協業に切り替えるとインカメラの映像が共有されるバグを修正

parent 897d16c5
...@@ -256,6 +256,11 @@ document.addEventListener("DOMContentLoaded", function () { ...@@ -256,6 +256,11 @@ document.addEventListener("DOMContentLoaded", function () {
} else { } else {
micOn(); micOn();
} }
} else if (data.type === "API_SEND_OWNER_CHANGE_CONFIRM") {
if (joinCollaborationType == COLLABORATION_TYPE.CAMERA) {
await new Promise(done => setTimeout(() => done(), 500));
removeOldLocalVideo(g_localStream);
}
} else if (data.type === "CHANGE_HOST_APPLY") { } else if (data.type === "CHANGE_HOST_APPLY") {
if (g_isMainMan) { if (g_isMainMan) {
coview_api.HeartBeatUser(globalUserInfo.loginId); coview_api.HeartBeatUser(globalUserInfo.loginId);
...@@ -623,6 +628,7 @@ function changeCollaboration(changeCollaborationType) { ...@@ -623,6 +628,7 @@ function changeCollaboration(changeCollaborationType) {
coview_api.ChangeCollaboration("audio"); coview_api.ChangeCollaboration("audio");
break; break;
case COLLABORATION_TYPE.CAMERA: case COLLABORATION_TYPE.CAMERA:
removeOldLocalVideo(g_localStream);
coview_api.ChangeCollaboration("image"); coview_api.ChangeCollaboration("image");
break; break;
case COLLABORATION_TYPE.VIDEO: case COLLABORATION_TYPE.VIDEO:
......
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