Removes an unused variable.

pull/169/merge
Boris Grozev 11 years ago
parent 8ed3b47850
commit 63a9cb1e19
  1. 1
      app.js
  2. 5
      videolayout.js

@ -962,7 +962,6 @@ function toggleVideo() {
*/
function toggleAudio() {
if (!(connection && connection.jingle.localAudio)) {
preMuted = true;
// We still click the button.
buttonClick("#mute", "icon-microphone icon-mic-disabled");
return;

@ -1,5 +1,4 @@
var VideoLayout = (function (my) {
var preMuted = false;
var currentDominantSpeaker = null;
var lastNCount = config.channelLastN;
var lastNEndpointsCache = [];
@ -14,10 +13,6 @@ var VideoLayout = (function (my) {
RTC.attachMediaStream($('#localAudio'), stream);
document.getElementById('localAudio').autoplay = true;
document.getElementById('localAudio').volume = 0;
if (preMuted) {
toggleAudio();
preMuted = false;
}
};
my.changeLocalVideo = function(stream, flipX) {

Loading…
Cancel
Save