From 75b07d7442fecac7669e0e754ba522520fd8d0ed Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Sat, 22 Dec 2018 15:33:43 -0800 Subject: [PATCH] Applying modifers while loading a new source causes loading a new video not to display --- ios/Video/RCTVideo.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index 76122984..90ecf057 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -858,7 +858,7 @@ static int const RCTVideoUnset = -1; - (void)setMaxBitRate:(float) maxBitRate { _maxBitRate = maxBitRate; - [self applyModifiers]; + _playerItem.preferredPeakBitRate = maxBitRate; } @@ -872,8 +872,7 @@ static int const RCTVideoUnset = -1; [_player setMuted:NO]; } - _playerItem.preferredPeakBitRate = _maxBitRate; - + [self setMaxBitRate:_maxBitRate]; [self setSelectedAudioTrack:_selectedAudioTrack]; [self setSelectedTextTrack:_selectedTextTrack]; [self setResizeMode:_resizeMode];