From 2829ae521348e4a0f0186570d395bc6732a3899b Mon Sep 17 00:00:00 2001 From: HezekielT Date: Wed, 25 Sep 2024 14:22:08 +0300 Subject: [PATCH 1/2] add isPlaying check --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 14943a42a9d8..e85520ccf712 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -441,7 +441,7 @@ function BaseVideoPlayer({ )} - {((isLoading && !isOffline) || isBuffering) && } + {((isLoading && !isOffline) || (isBuffering && !isPlaying)) && } {isLoading && (isOffline || !isBuffering) && } {controlStatusState !== CONST.VIDEO_PLAYER.CONTROLS_STATUS.HIDE && !isLoading && (isPopoverVisible || isHovered || canUseTouchScreen) && ( Date: Wed, 25 Sep 2024 14:23:33 +0300 Subject: [PATCH 2/2] run prettier --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index e85520ccf712..84eb988d0758 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -470,7 +470,6 @@ function BaseVideoPlayer({ ); } - BaseVideoPlayer.displayName = 'BaseVideoPlayer'; export default BaseVideoPlayer;