Commit a4ada46b authored by Landon Sherwood's avatar Landon Sherwood
Browse files

Show iOS controls if not fullscreen

Show controls without calling the present full screen method.
parent 4bf2b2c4
Loading
Loading
Loading
Loading
+1 −1
Changes for ios/RCTVideo.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;