#2665 - fix maxbitrate property being ignored on Android due to selected track overwrite
This commit is contained in:
parent
c2b0ce735f
commit
4a558f4b32
@ -1017,9 +1017,15 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
private void videoLoaded() {
|
||||
if (loadVideoStarted) {
|
||||
loadVideoStarted = false;
|
||||
if (audioTrackType != null) {
|
||||
setSelectedAudioTrack(audioTrackType, audioTrackValue);
|
||||
}
|
||||
if (videoTrackType != null) {
|
||||
setSelectedVideoTrack(videoTrackType, videoTrackValue);
|
||||
}
|
||||
if (textTrackType != null) {
|
||||
setSelectedTextTrack(textTrackType, textTrackValue);
|
||||
}
|
||||
Format videoFormat = player.getVideoFormat();
|
||||
int width = videoFormat != null ? videoFormat.width : 0;
|
||||
int height = videoFormat != null ? videoFormat.height : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user