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:
parent
709818f0ef
commit
6f61d7f6e6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user