Explorar el Código

fix(JitsiLocalTrack): report no data only when 'muted' is true

When the Temasys plugin is used the 'muted' property is in the track,
but it's value is undefined.
dev1
paweldomas hace 9 años
padre
commit
3d58f8025f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/RTC/JitsiLocalTrack.js

+ 1
- 1
modules/RTC/JitsiLocalTrack.js Ver fichero

@@ -635,7 +635,7 @@ JitsiLocalTrack.prototype._isReceivingData = function () {
635 635
     // creation.
636 636
     return this.stream.getTracks().some(track =>
637 637
         ((!("readyState" in track) || track.readyState === "live")
638
-            && (!("muted" in track) || track.muted === false)));
638
+            && (!("muted" in track) || track.muted !== true)));
639 639
 };
640 640
 
641 641
 module.exports = JitsiLocalTrack;

Loading…
Cancelar
Guardar