Applying modifers while loading a new source causes loading a new video not to display
This commit is contained in:
parent
bd3d6d876f
commit
75b07d7442
@ -858,7 +858,7 @@ static int const RCTVideoUnset = -1;
|
|||||||
|
|
||||||
- (void)setMaxBitRate:(float) maxBitRate {
|
- (void)setMaxBitRate:(float) maxBitRate {
|
||||||
_maxBitRate = maxBitRate;
|
_maxBitRate = maxBitRate;
|
||||||
[self applyModifiers];
|
_playerItem.preferredPeakBitRate = maxBitRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -872,8 +872,7 @@ static int const RCTVideoUnset = -1;
|
|||||||
[_player setMuted:NO];
|
[_player setMuted:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
_playerItem.preferredPeakBitRate = _maxBitRate;
|
[self setMaxBitRate:_maxBitRate];
|
||||||
|
|
||||||
[self setSelectedAudioTrack:_selectedAudioTrack];
|
[self setSelectedAudioTrack:_selectedAudioTrack];
|
||||||
[self setSelectedTextTrack:_selectedTextTrack];
|
[self setSelectedTextTrack:_selectedTextTrack];
|
||||||
[self setResizeMode:_resizeMode];
|
[self setResizeMode:_resizeMode];
|
||||||
|
Loading…
Reference in New Issue
Block a user