Closed stachu2k closed 2 years ago
I faced the same problem on ios.
When I call presentFullscreenPlayer, it throws error
Application tried to present modally a view controller that has a parent view controller that have a parent controller
I want to make video auto full screen but I can only manually click native button now
@victor012888 Hi. In our project we decided to build our own custom player based on <Video>
component and re-create controls with React components. We force our player to go fullscreen by using lockToLandscape()
from react-native-orientation-locker
. We couldn't rely on react-native-video
's built-in functionality anymore.
@stachu2k Is there anyway to get your version packge? I need it very much.
same issue for me
Yes very annoying. We are building a quiz to popup on a timestamp and I want dismissFullscrenPlayer() to work before the quiz shows up.
Any updates?
This is still an issue
This is still an issue same behavior in expo-managed, not possible to close player at end of video. https://forums.expo.dev/t/dismissfullscreen-makes-app-crash/68672
Had the same issue, dismissFullscreenPlayer
doesnt work if controls=true
.
Cant find a way to dismiss the full screen in onEnd
after entering full screen from control button
Anyone manage to find a workaround? I need to use with controls.
"react-native-video": "^5.2.1",
This is still an issue.
Bug
Method
dismissFullscreenPlayer
is not working when app is presented in fullscreen mode through default native button on iOS. HoweverdismissFullscreenPlayer
is working when app is in fullscreen mode following the call of thepresentFullscreenPlayer
method. This is pretty annoying bug since fullscreen player does not close automatically when video ends, so you have to do it manually and the only way is callingdismissFullscreenPlayer
method.Platform
Which player are you experiencing the problem on:
Environment info
react-native version: 0.61.5 react-native-video version: 4.4.5 but also not working in latest release.
Steps To Reproduce
Create video component in render method of class component and fill onEnd event as follows:
Play video, touch on Fullscreen icon and wait till the end of the video.
Video pauses when it is ended and fullscreen player is still visible.
Expected behaviour
Fullscreen closes when ended after calling
dismissFullscreenPlayer
inonEnd
event.