fix(android): prevent changing video track when video load (#3683)

- video track must change after video loaded, if change with load state, ready state can be called
This commit is contained in:
YangJH 2024-04-23 04:32:59 +09:00 committed by GitHub
parent 709818f0ef
commit 6f61d7f6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1818,7 +1818,7 @@ public class ReactExoplayerView extends FrameLayout implements
public void setSelectedVideoTrack(String type, String value) {
videoTrackType = type;
videoTrackValue = value;
setSelectedTrack(C.TRACK_TYPE_VIDEO, videoTrackType, videoTrackValue);
if (!loadVideoStarted) setSelectedTrack(C.TRACK_TYPE_VIDEO, videoTrackType, videoTrackValue);
}
public void setSelectedAudioTrack(String type, String value) {