getTrackById

The TextTrackList method getTrackById() returns the first TextTrack object from the track list whose id matches the specified string.

MDN Reference