Loading ios/RCTVideo.m +5 −1 Changes for ios/RCTVideo.m: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ static int const RCTVideoUnset = -1; BOOL _playWhenInactive; NSString * _ignoreSilentSwitch; NSString * _resizeMode; BOOL _fullscreen; BOOL _fullscreenPlayerPresented; UIViewController * _presentingViewController; } Loading Loading @@ -330,6 +331,8 @@ static int const RCTVideoUnset = -1; [self addPlayerTimeObserver]; [self setFullscreen:_fullscreen]; //Perform on next run loop, otherwise onVideoLoadStart is nil if(self.onVideoLoadStart) { id uri = [source objectForKey:@"uri"]; Loading Loading @@ -994,7 +997,8 @@ static int const RCTVideoUnset = -1; - (void)setFullscreen:(BOOL)fullscreen { if( fullscreen && !_fullscreenPlayerPresented ) _fullscreen = fullscreen; if( fullscreen && !_fullscreenPlayerPresented && _player ) { // Ensure player view controller is not null if( !_playerViewController ) Loading ios/RCTVideoPlayerViewController.m +14 −0 Changes for ios/RCTVideoPlayerViewController.m: 14 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,4 +13,18 @@ [_rctDelegate videoPlayerViewControllerDidDismiss:self]; } - (BOOL)shouldAutorotate { return YES; } - (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationLandscapeLeft; } @end Loading
ios/RCTVideo.m +5 −1 Changes for ios/RCTVideo.m: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ static int const RCTVideoUnset = -1; BOOL _playWhenInactive; NSString * _ignoreSilentSwitch; NSString * _resizeMode; BOOL _fullscreen; BOOL _fullscreenPlayerPresented; UIViewController * _presentingViewController; } Loading Loading @@ -330,6 +331,8 @@ static int const RCTVideoUnset = -1; [self addPlayerTimeObserver]; [self setFullscreen:_fullscreen]; //Perform on next run loop, otherwise onVideoLoadStart is nil if(self.onVideoLoadStart) { id uri = [source objectForKey:@"uri"]; Loading Loading @@ -994,7 +997,8 @@ static int const RCTVideoUnset = -1; - (void)setFullscreen:(BOOL)fullscreen { if( fullscreen && !_fullscreenPlayerPresented ) _fullscreen = fullscreen; if( fullscreen && !_fullscreenPlayerPresented && _player ) { // Ensure player view controller is not null if( !_playerViewController ) Loading
ios/RCTVideoPlayerViewController.m +14 −0 Changes for ios/RCTVideoPlayerViewController.m: 14 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,4 +13,18 @@ [_rctDelegate videoPlayerViewControllerDidDismiss:self]; } - (BOOL)shouldAutorotate { return YES; } - (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationLandscapeLeft; } @end