Integer timecodeTrack = null;
for (TrackInfo trackInfo : player.getTrackInfo()) {
System.out.println("trackInfo: " + trackInfo);
if (trackInfo instanceof TextTrackInfo) {
TextTrackInfo textTrackInfo = (TextTrackInfo) trackInfo;
if (TIMECODE_CODEC.equals(textTrackInfo.codecName())) {
timecodeTrack = textTrackInfo.id();
break;
}
}
}