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