FS-11044 - [verto_communicator] Fix error when muting/unmuting without cam and/or mic.

This commit is contained in:
Italo Rossi 2018-04-21 18:11:12 -03:00
parent 77daf39890
commit ba7b003bc2
1 changed files with 6 additions and 0 deletions

View File

@ -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++ ) {