Procházet zdrojové kódy

ref: Changes how isVideoPlayable is computed.

This commit changes how the SmallVideo.isVideoPlayable method works.

1st we remove the check on the video stream muted field (materialized with the
!this.videoStream.isMuted() guard). This check is redundant as it is
already materialized in the !this.isVideoMuted check (the isVideoMuted
field is updated with the return value of the videoStream.isMuted()
method).

2nd we return false if we're in audio only mode, because it's
(obviously) undesirable to have a playable video when in audio only
mode.
j8
George Politis před 5 roky
rodič
revize
2a7c6681ad
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      modules/UI/videolayout/SmallVideo.js

+ 1
- 1
modules/UI/videolayout/SmallVideo.js Zobrazit soubor

@@ -511,7 +511,7 @@ SmallVideo.prototype.isCurrentlyOnLargeVideo = function() {
511 511
  * or <tt>false</tt> otherwise.
512 512
  */
513 513
 SmallVideo.prototype.isVideoPlayable = function() {
514
-    return this.videoStream && !this.isVideoMuted && !this.videoStream.isMuted();
514
+    return this.videoStream && !this.isVideoMuted && !APP.conference.isAudioOnly();
515 515
 };
516 516
 
517 517
 /**

Načítá se…
Zrušit
Uložit