public void selectTrack(int index){
  selectedTrackIndex=index;
  ExposedTrack selectedTrack=tracks.get(selectedTrackIndex);
  selectedVariantIndex=selectedTrack.defaultVariantIndex;
  variants=selectedTrack.variants;
  variantPlaylists=new HlsMediaPlaylist[variants.length];
  variantLastPlaylistLoadTimesMs=new long[variants.length];
  variantBlacklistTimes=new long[variants.length];
}

public void selectTrack ( int index ) { selectedTrackIndex = index ; ExposedTrack selectedTrack = tracks . get ( selectedTrackIndex ) ; selectedVariantIndex = selectedTrack . defaultVariantIndex ; variants = selectedTrack . variants ; variantPlaylists = new HlsMediaPlaylist [ variants . length ] ; variantLastPlaylistLoadTimesMs = new long [ variants . length ] ; variantBlacklistTimes = new long [ variants . length ] ; }
selects a track for use . < p > this method should only be called after the source has been prepared .
