TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://thewidlarzgroup.github.io/react-native-video/
MIT License
7.19k stars 2.9k forks source link

Custom fullscreen in ScrollView #2878

Open bartoszchlad opened 2 years ago

bartoszchlad commented 2 years ago

Hello! I created a player with custom controls and I just wanted to know if there is any option to create a custom fullscreen mode in ScrollView. I have a miniplayer with ability to go fullscreen but this only works if player is not in ScrollView or if I open fullscreen in modal, but opening in modal cause losing buffer of video.

Is this even possible to have custom miniplayer with ability to go fullscreen in ScrollView with react-native-video?

Thanks for help!

freeboub commented 2 years ago

Did you check this project ? https://github.com/Lg0gs/react-native-corner-video

It looks like similar use case.

Let me know if it helps!

bartoszchlad commented 2 years ago

Unfortunately, neither the library nor the solution used in it solves the problem, because we still lose the video buffer as in the case of the solution using a modal :(

freeboub commented 2 years ago

Ok, in my app, I declare video player outside of the react-native-navigation stack. It allows us to keep video player available during app browsing. I think you need to implement such navigation trick