diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 77d8066e5c8d8..2875817156225 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -494,6 +494,9 @@ function BaseVideoPlayer({ videoPlayerRef.current?.setStatusAsync?.({rate: currentPlaybackSpeed}); }} onLoad={() => { + if (hasError) { + setHasError(false); + } if (!isCurrentlyURLSet || isUploading) { return; } @@ -502,6 +505,11 @@ function BaseVideoPlayer({ onPlaybackStatusUpdate={handlePlaybackStatusUpdate} onFullscreenUpdate={handleFullscreenUpdate} onError={() => { + // No need to set hasError while offline, since the offline indicator is already shown. + // Once the user reconnects, if the video is unsupported, the error will be triggered again. + if (isOffline) { + return; + } setHasError(true); }} testID={CONST.VIDEO_PLAYER_TEST_ID}