Commit 114bb9a8 by Takatoshi Miura

Merge branch 'communication/#43232_in-camera' into 'develop'

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

See merge request !187
parents 897d16c5 6e2ad12c
......@@ -2251,6 +2251,9 @@ CHAT_UI.refreshForOffline = function () {
alertString = getLocalizedString("err_weak_network_exit_collaboration");
}
alert(alertString);
if (CHAT_UTIL.isIOS()) {
webkit.messageHandlers.finishCollaboration.postMessage({});
}
if (collaborationJoinFlg != "2") {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
......
......@@ -256,6 +256,11 @@ document.addEventListener("DOMContentLoaded", function () {
} else {
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") {
if (g_isMainMan) {
coview_api.HeartBeatUser(globalUserInfo.loginId);
......@@ -623,6 +628,7 @@ function changeCollaboration(changeCollaborationType) {
coview_api.ChangeCollaboration("audio");
break;
case COLLABORATION_TYPE.CAMERA:
removeOldLocalVideo(g_localStream);
coview_api.ChangeCollaboration("image");
break;
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