• findSubtitleIndex - find the index for trackSubtitle in the subtitleTracks array. returns -1 if trackSubtitle cannot be found.

    Parameters

    • subtitleTracks: Subtitle[]

      the list of subtitles to search in

    • trackSubtitle: Subtitle

      the subtitle that should be found

    Returns number