File tree 1 file changed +2
-2
lines changed
src/components/VideoPlayer 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ function BaseVideoPlayer({
189
189
if ( ! status . isLoaded ) {
190
190
preventPausingWhenExitingFullscreen ( false ) ;
191
191
setIsPlaying ( false ) ;
192
- setIsLoading ( false ) ; // when video is ready to display duration is not NaN
192
+ setIsLoading ( true ) ; // when video is ready to display duration is not NaN
193
193
setIsBuffering ( false ) ;
194
194
setDuration ( videoDuration * 1000 ) ;
195
195
setPosition ( 0 ) ;
@@ -442,7 +442,7 @@ function BaseVideoPlayer({
442
442
) }
443
443
</ PressableWithoutFeedback >
444
444
{ ( ( isLoading && ! isOffline ) || isBuffering ) && < FullScreenLoadingIndicator style = { [ styles . opacity1 , styles . bgTransparent ] } /> }
445
- { isLoading && ! isBuffering && < AttachmentOfflineIndicator isPreview = { isPreview } /> }
445
+ { isLoading && ( isOffline || ! isBuffering ) && < AttachmentOfflineIndicator isPreview = { isPreview } /> }
446
446
{ controlStatusState !== CONST . VIDEO_PLAYER . CONTROLS_STATUS . HIDE && ! isLoading && ( isPopoverVisible || isHovered || canUseTouchScreen ) && (
447
447
< VideoPlayerControls
448
448
duration = { duration }
You can’t perform that action at this time.
0 commit comments