Explorar el Código

fix(large-video): do not try to show background on safari with webrtc (#2606)

The animation for toggling filmstrip visibility was lagging on
Safari. Even though the background video is set to hidden, it is
still causing issues. Setting the background to display none
instead does help but might interfere with animations. So instead
do the easy thing and re-use logic used for Firefox to not show
the background video.
master
virtuacoplenny hace 7 años
padre
commit
bfb45ed0e8
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      modules/UI/videolayout/VideoContainer.js

+ 5
- 1
modules/UI/videolayout/VideoContainer.js Ver fichero

@@ -687,7 +687,11 @@ export class VideoContainer extends LargeContainer {
687 687
      * @returns {void}
688 688
      */
689 689
     _updateBackground() {
690
-        if (browser.isFirefox() || browser.isTemasysPluginUsed()) {
690
+        // Do not the background display on browsers that might experience
691
+        // performance issues from the presence of the background.
692
+        if (browser.isFirefox()
693
+                || browser.isSafariWithWebrtc()
694
+                || browser.isTemasysPluginUsed()) {
691 695
             return;
692 696
         }
693 697
 

Loading…
Cancelar
Guardar