TheWidlarzGroup / react-native-video

A <Video /> component for react-native
http://thewidlarzgroup.github.io/react-native-video/
MIT License
7.12k stars 2.88k forks source link

React-native-video reloads when orientation change (react-native-orientation-locker) (Android only) #3267

Open nghuymb opened 10 months ago

nghuymb commented 10 months ago

Bug

I use the react-native-orientation-locker library to change the application's orientation. But after changing the orientation, the video is reloaded while playing (this only happens on Android. iOS still works normally). Anyone knows how to avoid this behavior?

Platform

Environment info

"react-native-video": "^5.2.0", "react-native-orientation-locker": "^1.4.0",

hasan642 commented 8 months ago

same issue, Is any solution?

freeboub commented 5 months ago

I cannot reproduce the on V6.0.0-beta.6. I tried to callOrientation.lockToPortrait(); and Orientation.lockToLandscape(); in the sample, but video doesn't restart. may also be linked to react native version. can you reproduce it on V6 and check react-native version please ?