Removes an unused variable.
This commit is contained in:
parent
8ed3b47850
commit
63a9cb1e19
1
app.js
1
app.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…
Reference in New Issue