From a4ada46b3069ee300df2b68d89ef2ecbde7f0469 Mon Sep 17 00:00:00 2001 From: Landon Sherwood Date: Tue, 29 Aug 2017 16:39:18 -0500 Subject: [PATCH] Show iOS controls if not fullscreen Show controls without calling the present full screen method. --- ios/RCTVideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTVideo.m b/ios/RCTVideo.m index 16174add..134cc0ae 100644 --- a/ios/RCTVideo.m +++ b/ios/RCTVideo.m @@ -90,7 +90,7 @@ static NSString *const timedMetadata = @"timedMetadata"; - (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem { RCTVideoPlayerViewController* playerLayer= [[RCTVideoPlayerViewController alloc] init]; - playerLayer.showsPlaybackControls = NO; + playerLayer.showsPlaybackControls = YES; playerLayer.rctDelegate = self; playerLayer.view.frame = self.bounds; playerLayer.player = _player;