Working on autorotation of video player

This commit is contained in:
Ash Mishra
2018-08-02 10:32:50 -07:00
parent 3c0323fbb0
commit 3ba26eb45a
2 changed files with 19 additions and 4 deletions

View File

@@ -13,4 +13,18 @@
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
}
- (BOOL)shouldAutorotate {
return YES;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeLeft;
}
@end