mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
73ee27bf17
This is the first step in a series of efforts to simplify how we handle text tracks internally. The purpose of `autoShowText` has always felt a bit unclear. It was originally added because Shaka wasn't flexible enough when choosing an initial text track. I don't think we should try to handle every possible scenario for initial text track selection. Instead, we should respect `config.preferredTextLanguage` and let the application decide if it needs more granular control. Apps can already do this easily with `getTextTracks()` and `selectTextTrack(track)`. Ultimately, I'd like to move toward a simpler API where either a text track is selected or none is. If nothing is selected, we shouldn't stream any text at all. See https://github.com/shaka-project/shaka-player/issues/9301 for extra context.