From: João Mesquita Date: Thu, 27 Aug 2015 02:27:07 +0000 (-0300) Subject: FS-8060: [verto.js] conditionally set video tag src to null for FF and empty string... X-Git-Tag: v1.6.2~57^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f327e103652bd19609f7ad7ccdb02d8ad101d235;p=thirdparty%2Ffreeswitch.git FS-8060: [verto.js] conditionally set video tag src to null for FF and empty string for others. --- diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index d9d19a93ca..8b21169c17 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -294,7 +294,11 @@ var iceTimer; if (self.options.useVideo) { self.options.useVideo.style.display = 'none'; - self.options.useVideo[moz ? 'mozSrcObject' : 'src'] = null; + if (moz) { + self.options.useVideo['mozSrcObject'] = null; + } else { + self.options.useVideo['src'] = ''; + } } if (self.localStream) { @@ -304,7 +308,11 @@ var iceTimer; if (self.options.localVideo) { self.options.localVideo.style.display = 'none'; - self.options.localVideo[moz ? 'mozSrcObject' : 'src'] = null; + if (moz) { + self.options.localVideo['mozSrcObject'] = null; + } else { + self.options.localVideo['src'] = ''; + } } if (self.options.localVideoStream) {