Commit 0e3f64a3 by Lee Munkyeong

協業切替、ホスト変更の時レコードが終了されるように修正

parent 697b7184
function recordStart() {
MainManRecord('on');
$('#recordBtn').removeClass('bg_gray');
$('#recordBtn').addClass('bg_red');
}
function recordStop() {
MainManRecord('stop', CMS_SERVER_URL + '/chatapi/file/uploadArchive');
$('#recordBtn').addClass('bg_gray');
$('#recordBtn').removeClass('bg_red');
}
$(function () { $(function () {
// メニューオーバーレイ表示 // メニューオーバーレイ表示
$(".menu_btn").click(function () { $(".menu_btn").click(function () {
...@@ -124,13 +136,9 @@ $(function () { ...@@ -124,13 +136,9 @@ $(function () {
$('#recordBtn').click(function () { $('#recordBtn').click(function () {
if ($('#recordBtn').hasClass('bg_gray')) { if ($('#recordBtn').hasClass('bg_gray')) {
MainManRecord('on'); recordStart();
$('#recordBtn').removeClass('bg_gray');
$('#recordBtn').addClass('bg_red');
} else { } else {
MainManRecord('stop', CMS_SERVER_URL + '/chatapi/file/uploadArchive'); recordStop();
$('#recordBtn').addClass('bg_gray');
$('#recordBtn').removeClass('bg_red');
} }
}) })
}); });
...@@ -176,6 +176,10 @@ $(function () { ...@@ -176,6 +176,10 @@ $(function () {
} else { } else {
Coview_changeHost(data.payload.loginId); Coview_changeHost(data.payload.loginId);
} }
} else if (data.type === "API_SEND_OWNER_CHANGE_COMPLETE") {
if ($('#recordBtn').hasClass('bg_red')) {
recordStop();
}
} }
}); });
}); });
...@@ -383,6 +387,9 @@ function changeCollaboration(changeCollaborationType) { ...@@ -383,6 +387,9 @@ function changeCollaboration(changeCollaborationType) {
android.setJoinCollaborationType(changeCollaborationType); android.setJoinCollaborationType(changeCollaborationType);
} }
joinCollaborationType = changeCollaborationType; joinCollaborationType = changeCollaborationType;
if ($('#recordBtn').hasClass('bg_red')) {
recordStop();
}
initCollaborationUI(changeCollaborationType); initCollaborationUI(changeCollaborationType);
switch (changeCollaborationType) { switch (changeCollaborationType) {
case COLLABORATION_TYPE.AUDIO: case COLLABORATION_TYPE.AUDIO:
...@@ -482,6 +489,9 @@ function Coview_exitCollaboration(isDocument = false) { ...@@ -482,6 +489,9 @@ function Coview_exitCollaboration(isDocument = false) {
android.exitMeetingRoom(); android.exitMeetingRoom();
} }
} }
if ($('#recordBtn').hasClass('bg_red')) {
recordStop();
}
clearInterval(timeInterval); clearInterval(timeInterval);
coview_api.LeaveRoom(); coview_api.LeaveRoom();
if (coview_api.getRoomUsers()) { if (coview_api.getRoomUsers()) {
......
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