jf-roku/source/utils
cthelight 39dad7666c Subtitles: Auto-select default option
On other players (web/andriod app) the user perferences for
subtitle behavior are taken into account, and used to make an
assumption about subtitle behavior.

This patch ports most of that logic here. "Smart" selection is not
yet fully-featured, as it requires additional knowledge about audio
language preferences. Rather it uses the fallback mechanism, which
emulates the "Default" subtitle option.

The logic for the different options was based on the main jellyfin
repo (specifically sha 49d5fdb33fc9792147c1df03e1d1b051e6b7ec79 in
file Emby.Server.Implementations/Library/MediaStreamSelector.cs)

Additionally, this implementation specifically prefers text-based
subtitles (assuming they match the user's preference) as they are
the only ones natively supported by Roku.

Also, the subtitle changing mechanism is reworked slightly to make
use of the new implementation herein
2022-05-22 17:08:54 -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: Auto-select default option 2022-05-22 17:08:54 -05:00