Applying modifers while loading a new source causes loading a new video not to display

This commit is contained in:
Hampton Maxwell 2018-12-22 15:33:43 -08:00
parent bd3d6d876f
commit 75b07d7442

View File

@ -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];