jf-roku/source/utils
cthelight 7ee5411095 Subtitles: Search by URL not assumed index
Currently, when populating subtitleTracks, we assume that the ordering
and list of populated subtitle tracks will not change when Roku moves
the list into availableSubtitleTracks. This causes an issue with some
videos as it is not always consistent.

This patch modifies the logic to no-longer inject assumed final indices
into our list of text-based subtitles, but instead search through the
availableSubtitleTracks array and locate the actual subtitle that
refers to the same URL as in our list. In this way we are guaranteed
to always tell Roku to play the subtitle we want, no matter how re-
ordered the options get.

NOTE: The URL gets mildly mangled in the process of copying from
subtitleTracks to availableSubtitleTracks, so we need so search via
substring, rather than doing a full string comparison.
2022-05-22 17:54:56 -05:00
..
config.brs User setting screen 2022-05-01 11:51:28 +01:00
deviceCapabilities.brs Move MPEG 2 support from system setting to user setting, and into new setting screen 2022-05-01 11:53:39 +01:00
globals.brs Format all brs files 2021-07-28 06:51:15 -04:00
misc.brs Abstract remaining overhang functionality with groupStack so overhang is never accessed directly 2021-10-09 21:14:32 -05:00
Subtitles.brs Subtitles: Search by URL not assumed index 2022-05-22 17:54:56 -05:00