Skip to content

Commit

Permalink
Merge pull request #758 from LandonS23/ios-controls
Browse files Browse the repository at this point in the history
Show iOS controls without using present full screen
  • Loading branch information
cobarx authored Jul 6, 2018
2 parents c66b716 + a4ada46 commit 7bd7024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher

- (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;
Expand Down

0 comments on commit 7bd7024

Please sign in to comment.