Do not trigger unsatisfiable constraints alert when possible

This commit is contained in:
Stanisław Chmiela 2016-04-01 13:04:16 +02:00
parent 3b3761dc81
commit 9635a0d76b

View File

@ -72,6 +72,7 @@ static NSString *const playbackBufferEmptyKeyPath = @"playbackBufferEmpty";
- (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem {
RCTVideoPlayerViewController* playerLayer= [[RCTVideoPlayerViewController alloc] init];
playerLayer.showsPlaybackControls = NO;
playerLayer.rctDelegate = self;
playerLayer.view.frame = self.bounds;
playerLayer.player = _player;