Commit 5cfc82a4 by Lee Munkyeong

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

parent ae69f2a0
......@@ -188,11 +188,9 @@ $(function () {
$('#micBtn').click(function () {
$('#coviewMicCtrBtn').click();
if ($('#micBtn').hasClass('bg_red')) {
$('#micBtn').removeClass('bg_red');
$('#micBtn').addClass('bg_blue');
micOn();
} else {
$('#micBtn').removeClass('bg_blue');
$('#micBtn').addClass('bg_red');
micOff();
}
})
......@@ -220,3 +218,15 @@ function penOff() {
$('#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) {
coview_api.ChangeCollaboration('audio');
break;
}
if ($('#micBtn').hasClass('bg_red')) {
micOff();
} else {
micOn();
}
penOff();
if (CHAT_UTIL.isIOS()) {
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