-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS app crashes on call to presentFullScreenPlayer #2808
Comments
For me I am getting same issue when |
For me, I export AVPlayerViewController+Fullscreen
fixed this case |
@jffun maybe you can to create Pull request with your fixes? |
Changed viewController.present() functions argument from 'viewController' to '_playerViewController!' in setFullscreen method. Works for me.
Path: node_modules/react-native-video/ios/Video/RCTVideo.swift |
@samonov22 there is lines as well can you please tell me about this as well? var _playerViewController:UIViewController! = self.firstAvailableUIViewController() |
Hi, Can anyone confirm now that the problem is reproducible on iOS with the latest commits in master? I can't reproduce the crash, but the player doesn't go to fullscreen either (how is this expected) - https://bulkin.me/files/ios_player.mov This is very similar to the problem from #2864 My code:
|
Hi, I had the same problem with the same version
|
@samonov22 @somersets This fix is working for us on alpha 4. Thank you! Do you want to open a PR? |
@johnbillion Yes, I would like to open a PR |
Bug
When calling
presentFullScreenPlayer
in an iOS device/emulator (android is working perfectly) there is the following error:Which seem to me related to:
Our workaround for this currently is to not call the function at all in iOS and keep the controls enabled (
controls={true}
) which will provide a button to go fullscreen.Platform
Environment info
React native info output:
Library version: 6.0.0.alpha1 (also tested in the top of master commit f32da09)
Steps To Reproduce
presentFullScreenPlayer
on the video ref...
Expected behaviour
Reproducible sample code
The text was updated successfully, but these errors were encountered: