Преглед на файлове

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 преди 7 години
родител
ревизия
bfb45ed0e8
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5
    1
      modules/UI/videolayout/VideoContainer.js

+ 5
- 1
modules/UI/videolayout/VideoContainer.js Целия файл

@@ -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…
Отказ
Запис