TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://docs.thewidlarzgroup.com/react-native-video/
MIT License
7.23k stars 2.9k forks source link

[BUG]: Player briefly shows a white content when switching away from and returning to the page #4254

Open SeekingLight233 opened 1 month ago

SeekingLight233 commented 1 month ago

Version

6.7.0

What platforms are you having the problem on?

Android

System Version

Android 12

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I upgraded the react-native-video from version 6.1.0 to 6.7.0.

However, I found that when navigating away from and returning to the page using React Navigation, the player content briefly shows a white screen.

This issue did not occur in version 6.1.0, I'm not sure what changes were introduced in the versions between.

This is version 6.1.0, which works as we expected:

https://github.com/user-attachments/assets/427b4edb-1d48-48e3-a72f-53abcc72e399

This is version 6.7.0, and we can see that when navigating away and returning, the player content briefly turns white (we can adjust the playback speed to 0.25x to observe this).

https://github.com/user-attachments/assets/2c3c1ba0-b626-4a85-b5cb-a013b13840e0

Reproduction Link

https://github.com/SeekingLight233/RnIssuePlayground

Reproduction

Step to reproduce this bug are:

  1. Clone this project https://github.com/SeekingLight233/RnIssuePlayground

  2. Install dependencies with yarn and run yarn android

github-actions[bot] commented 1 month ago

Thank you for your bug report. We will review it and get back to you if we need more information.

pateljoel commented 3 weeks ago

I've been getting this also, but when I rotate the phone with a video playing I also get this. I'm confused how this was introduced and not sure how to fix.