]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11044 - [verto_communicator] Fix error when muting/unmuting without cam and/or...
authorItalo Rossi <italorossib@gmail.com>
Sat, 21 Apr 2018 21:11:12 +0000 (18:11 -0300)
committerItalo Rossi <italorossib@gmail.com>
Sat, 21 Apr 2018 21:11:12 +0000 (18:11 -0300)
html5/verto/js/src/jquery.FSRTC.js

index ed8a5500d8650fa20493f2ef4ae80066368b4dae..f07188bedb60ab485e61b6ddad6e5fa555494e81 100644 (file)
 
     $.FSRTC.prototype.setMute = function(what) {
        var self = this;
+    if (!self.localStream) {
+        return false;
+    }
        var audioTracks = self.localStream.getAudioTracks();    
 
        for (var i = 0, len = audioTracks.length; i < len; i++ ) {
 
     $.FSRTC.prototype.setVideoMute = function(what) {
        var self = this;
+    if (!self.localStream) {
+        return false;
+    }
        var videoTracks = self.localStream.getVideoTracks();    
 
        for (var i = 0, len = videoTracks.length; i < len; i++ ) {