#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() {
|
private void videoLoaded() {
|
||||||
if (loadVideoStarted) {
|
if (loadVideoStarted) {
|
||||||
loadVideoStarted = false;
|
loadVideoStarted = false;
|
||||||
setSelectedAudioTrack(audioTrackType, audioTrackValue);
|
if (audioTrackType != null) {
|
||||||
setSelectedVideoTrack(videoTrackType, videoTrackValue);
|
setSelectedAudioTrack(audioTrackType, audioTrackValue);
|
||||||
setSelectedTextTrack(textTrackType, textTrackValue);
|
}
|
||||||
|
if (videoTrackType != null) {
|
||||||
|
setSelectedVideoTrack(videoTrackType, videoTrackValue);
|
||||||
|
}
|
||||||
|
if (textTrackType != null) {
|
||||||
|
setSelectedTextTrack(textTrackType, textTrackValue);
|
||||||
|
}
|
||||||
Format videoFormat = player.getVideoFormat();
|
Format videoFormat = player.getVideoFormat();
|
||||||
int width = videoFormat != null ? videoFormat.width : 0;
|
int width = videoFormat != null ? videoFormat.width : 0;
|
||||||
int height = videoFormat != null ? videoFormat.height : 0;
|
int height = videoFormat != null ? videoFormat.height : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user