Applying modifers while loading a new source causes loading a new video not to display
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user