]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8060: [verto.js] conditionally set video tag src to null for FF and empty string...
authorJoão Mesquita <jmesquita@indicium.com.ar>
Thu, 27 Aug 2015 02:27:07 +0000 (23:27 -0300)
committerJoão Mesquita <jmesquita@indicium.com.ar>
Thu, 27 Aug 2015 02:28:10 +0000 (23:28 -0300)
html5/verto/js/src/jquery.FSRTC.js

index d9d19a93cab2c5cc98f656c727938d04dfd99ed4..8b21169c179201a1cdfa83119c4474301e6255b1 100644 (file)
@@ -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) {