Hi Guys,
Thank you for the good work.
How can i rotate the player on full screen, something like the youtube experience ?
I am wondering if it's not doable currently, just if you guys can help me with the logic.
thanks
https://github.com/yamill/react-native-orientation and change the style of the player.
Be careful of the react-native-orientation npm version, only the github is updated
@Liroo How do you use react-native-orientation with player?
Player does not have any events to detect full screen.
I implemented one fully JS (react-native-orientation has listeners for rotate event).. But there is definitivly not the right way to do.
This should be implemented in Native, you could wait or try to do your own module or PR this one ;)
@cihancil
@mshaaban0 You want the player to rotate when the device rotates while in fullscreen, right ?
@jujumoz no, i want the player in full screen on play without orientation, similar to the youtube player on the youtube app
Youtube player does not work like this... It detect orientation and play fullscreen only in landscape mode or if you press fullscreen button.
And what you want is a view rotate by 90 degrees and position absolute left, right, top, bottom 0
@Liroo actually you are right, my mistake. i did try to do it but my obj-c skills are very low. i will try to give it another try soon. 馃憤
@mshaaban0 anyway, I dont think react native has any stable video player actualy :/
@mshaaban0 You want the player to rotate when the device rotates while in fullscreen, right ?
@jujumoz why was this closed? Isn't this something that should we should add? At least for iOS. On Android full screen goes straight into landscape mode.
@jujumoz We really need this feature, currently react-native-orientation seems not working for RN 0.42.0 and later... If the feature can be included in this library it will be awesome!
On iOS you can easily allow landscape mode for videos playing in a webview (that's what this library does) even if the rest of the app is portrait mode only.