diff --git a/web-meeting/app-server/html/js/index.js b/web-meeting/app-server/html/js/index.js
index 611df27..ac5ea82 100644
--- a/web-meeting/app-server/html/js/index.js
+++ b/web-meeting/app-server/html/js/index.js
@@ -143,6 +143,7 @@ function userExit() {
$("#user-list").empty();
$('#video-panel').empty();
localStream = undefined;
+ isAudioOnly = false;
clearInterval(refreshMute);
}
@@ -1354,7 +1355,7 @@ function playpause() {
}
function toggleVideo() {
- if (!localPublication) {
+ if (!localPublication || isAudioOnly) {
return;
}