function getSelectedTrack(tracks) {
    const activeTracks = tracks.filter((track) => {
      return track.active == true;
    });

    return activeTracks[0];
  }
@param {!Array<!shaka.extern.Track>} tracks
@return {!shaka.extern.Track}