Skip to content

[BUG]: Poster not working on android #3640

@LunatiqueCoder

Description

@LunatiqueCoder

Version

v6 (Beta)

What platforms are you having the problem on?

Android

Architecture

Old architecture

What happened?

When using the poster prop, it works for a few seconds at the beginning, and then we have a blank screen.

Reproduction

N/A

Reproduction

N/A

Solution:

diff --git a/node_modules/react-native-video/src/Video.tsx b/node_modules/react-native-video/src/Video.tsx
index e496efc..5a97630 100644
--- a/node_modules/react-native-video/src/Video.tsx
+++ b/node_modules/react-native-video/src/Video.tsx
@@ -376,7 +376,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
     );
 
     const _onReadyForDisplay = useCallback(() => {
-      setShowPoster(false);
+      setShowPoster(!!poster);
       onReadyForDisplay?.();
     }, [setShowPoster, onReadyForDisplay]);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions