forked from Mirrors/freeswitch
FS-11044 - [verto_communicator] Fix error when muting/unmuting without cam and/or mic.
This commit is contained in:
parent
77daf39890
commit
ba7b003bc2
@ -341,6 +341,9 @@
|
||||
|
||||
$.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++ ) {
|
||||
@ -370,6 +373,9 @@
|
||||
|
||||
$.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++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user