Skip to content

Commit

Permalink
fix(android): prevent changing video track when video load (#3683)
Browse files Browse the repository at this point in the history
- video track must change after video loaded, if change with load state, ready state can be called
  • Loading branch information
YangJonghun authored Apr 22, 2024
1 parent 709818f commit 6f61d7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ private int getGroupIndexForDefaultLocale(TrackGroupArray groups) {
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) {
Expand Down

0 comments on commit 6f61d7f

Please sign in to comment.