31 lines
628 B
Objective-C
31 lines
628 B
Objective-C
#import "RCTVideoPlayerViewController.h"
|
|
|
|
@interface RCTVideoPlayerViewController ()
|
|
|
|
@end
|
|
|
|
@implementation RCTVideoPlayerViewController
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated
|
|
{
|
|
[super viewDidDisappear:animated];
|
|
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
|
|
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
|
|
}
|
|
|
|
- (BOOL)shouldAutorotate {
|
|
return YES;
|
|
}
|
|
|
|
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
|
|
|
|
return UIInterfaceOrientationMaskLandscape;
|
|
}
|
|
|
|
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
|
|
|
|
return UIInterfaceOrientationLandscapeLeft;
|
|
}
|
|
|
|
@end
|