Commit a2b19785 by Lee Munkyeong

Merge branch 'feature/develop_end_recording_on_change_host_and_collaboration' into 'develop'

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

See merge request !139
parents f60f08a4 4fd19108
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();
}
})
});
......
......@@ -177,6 +177,9 @@ $(function () {
Coview_changeHost(data.payload.loginId);
}
} else if (data.type === "API_SEND_OWNER_CHANGE_COMPLETE") {
if ($('#recordBtn').hasClass('bg_red')) {
recordStop();
}
penOff();
}
});
......@@ -385,6 +388,9 @@ function changeCollaboration(changeCollaborationType) {
android.setJoinCollaborationType(changeCollaborationType);
}
joinCollaborationType = changeCollaborationType;
if ($('#recordBtn').hasClass('bg_red')) {
recordStop();
}
initCollaborationUI(changeCollaborationType);
switch (changeCollaborationType) {
case COLLABORATION_TYPE.AUDIO:
......@@ -486,6 +492,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