Skip to content

Commit

Permalink
Show iOS controls if not fullscreen
Browse files Browse the repository at this point in the history
Show controls without calling the present full screen method.
  • Loading branch information
LandonS23 committed Aug 29, 2017
1 parent 4bf2b2c commit a4ada46
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 @@ -90,7 +90,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 a4ada46

Please sign in to comment.