From c81406d8c9d057b37676b14a4288484db780f053 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Thu, 6 Feb 2014 12:12:32 +0100 Subject: [PATCH] Fixes unintentially reverted commit by Philipp Hancke 40af39a. --- app.js | 10 +++++++--- index.html | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index fe7764aba..72ff8600b 100644 --- a/app.js +++ b/app.js @@ -99,7 +99,6 @@ function doJoin() { $(document).bind('mediaready.jingle', function (event, stream) { connection.jingle.localStream = stream; RTC.attachMediaStream($('#localVideo'), stream); - document.getElementById('localVideo').muted = true; document.getElementById('localVideo').autoplay = true; document.getElementById('localVideo').volume = 0; @@ -107,7 +106,13 @@ $(document).bind('mediaready.jingle', function (event, stream) { updateLargeVideo(localVideoSrc, true, 0); $('#localVideo').click(function () { - updateLargeVideo($(this).attr('src'), true, 1); + updateLargeVideo($(this).attr('src'), true, 0); + $('video').each(function (idx, el) { + if (el.id.indexOf('mixedmslabel') != -1) { + el.volume = 0; + el.volume = 1; + } + }); }); doJoin(); @@ -1102,4 +1107,3 @@ function scrollChatToBottom() { $('#chatconversation').scrollTop($('#chatconversation')[0].scrollHeight); }, 5); } - diff --git a/index.html b/index.html index 20ea0b7d0..d7a89c283 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - +