Commit 5cfc82a4 by Lee Munkyeong

協業切替ても音声on,offが維持されるように修正

parent ae69f2a0
...@@ -188,11 +188,9 @@ $(function () { ...@@ -188,11 +188,9 @@ $(function () {
$('#micBtn').click(function () { $('#micBtn').click(function () {
$('#coviewMicCtrBtn').click(); $('#coviewMicCtrBtn').click();
if ($('#micBtn').hasClass('bg_red')) { if ($('#micBtn').hasClass('bg_red')) {
$('#micBtn').removeClass('bg_red'); micOn();
$('#micBtn').addClass('bg_blue');
} else { } else {
$('#micBtn').removeClass('bg_blue'); micOff();
$('#micBtn').addClass('bg_red');
} }
}) })
...@@ -220,3 +218,15 @@ function penOff() { ...@@ -220,3 +218,15 @@ function penOff() {
$('#penBtn').removeClass('bg_blue'); $('#penBtn').removeClass('bg_blue');
} }
}; };
function micOn() {
coview_api.MicMuteControl('off');
$('#micBtn').addClass('bg_blue');
$('#micBtn').removeClass('bg_red');
};
function micOff() {
coview_api.MicMuteControl('on');
$('#micBtn').removeClass('bg_blue');
$('#micBtn').addClass('bg_red');
};
...@@ -439,6 +439,11 @@ function changeCollaboration(changeCollaborationType) { ...@@ -439,6 +439,11 @@ function changeCollaboration(changeCollaborationType) {
coview_api.ChangeCollaboration('audio'); coview_api.ChangeCollaboration('audio');
break; break;
} }
if ($('#micBtn').hasClass('bg_red')) {
micOff();
} else {
micOn();
}
penOff(); penOff();
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
webkit.messageHandlers.changeCollaboration.postMessage({"changeCollaborationType": changeCollaborationType, "meetingId": newMeetingId}); webkit.messageHandlers.changeCollaboration.postMessage({"changeCollaborationType": changeCollaborationType, "meetingId": newMeetingId});
......
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