diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index 2bddcbe06b..34b6be0fde 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -295,7 +295,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) { @@ -305,7 +309,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) {