Mutes video elements.

This commit is contained in:
Boris Grozev 2015-10-28 12:04:34 -05:00
parent 7abe02d756
commit a2ad7b8f53
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ SmallVideo.createStreamElement = function (stream) {
var element = isVideo ? document.createElement('video') var element = isVideo ? document.createElement('video')
: document.createElement('audio'); : document.createElement('audio');
if (isVideo) {
element.setAttribute("muted", "true");
}
if (!RTCBrowserType.isIExplorer()) { if (!RTCBrowserType.isIExplorer()) {
element.autoplay = true; element.autoplay = true;