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.
This commit is contained in:
virtuacoplenny 2018-03-13 14:37:35 -07:00 committed by bbaldino
parent e325199075
commit bfb45ed0e8
1 changed files with 5 additions and 1 deletions

View File

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