LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
607 stars 155 forks source link

VideoPlayer disappears on Android after closing the fullscreen mode #291

Open bsumer-wyn opened 1 year ago

bsumer-wyn commented 1 year ago

Describe the bug In a case that you render the video player in a flat list with multiple other items so that you would have to scroll down to see the video player, when you go full screen, and close the fullscreen view, flatlist scrolls you back to the top of the list, and when you scrollback to where the video player supposed to be, you find it is gone, the view that renders the videoplayer is there with white background, but the video player itself disappears.

To Reproduce 1-Render the player in a flatlist with multiple items that the videoplayer should be down in the list so you scroll to it. 2-Play the video and go to fullscreen mode, close the fullscreen mode. 3-Video frame disappears from the list only the background left.

Expected behavior Videoframe should still be visible in the flatlist.

Screenshots

https://user-images.githubusercontent.com/115162963/217916779-d9e1d2b7-8be7-4026-934b-adcf42c7fc70.mp4

Smartphone (please complete the following information):

Additional context This only happens on android devices. iOS is fine. And if you have lets say 2 videoframes in the flatlist, after the first one disappears, you try to take the same steps on the second one, and it works perfectly, and doesn't disappear...

PR-Here commented 1 year ago

Getting same issue in android 13

G2-Rocha commented 1 year ago

I have exactly the same issue. Any update on this? Possible fix?

ihorkolucky commented 12 months ago

Same issue on Android, when you fix it?