Fixes JS error when enable / disable video. Changes the enable / disable video function to send presence with videomuted element.

This commit is contained in:
hristoterezov 2014-09-17 16:44:41 +03:00
parent aaf444bae4
commit f6a846eecc
1 changed files with 2 additions and 11 deletions

13
app.js
View File

@ -950,20 +950,11 @@ function toggleVideo() {
$('#video').removeClass("icon-camera icon-camera-disabled"); $('#video').removeClass("icon-camera icon-camera-disabled");
$('#video').addClass("icon-camera"); $('#video').addClass("icon-camera");
} }
connection.emuc.addVideoInfoToPresence(isMuted);
connection.emuc.sendPresence();
} }
); );
} }
sess = focus || activecall;
if (!sess) {
return;
}
sess.pendingop = ismuted ? 'unmute' : 'mute';
// connection.emuc.addVideoInfoToPresence(!ismuted);
// connection.emuc.sendPresence();
sess.modifySources();
} }
/** /**