pub async fn player_set_subtitle_track(
player: State<'_, PlayerStateWrapper>,
stream_index: Option<i32>,
) -> Result<PlayerStatus, String>Expand description
Set (or clear, with None) the active subtitle track on a native backend.
On Android this indexes ExoPlayer’s text track groups — i.e. the position
of the sideloaded MediaItem.SubtitleConfiguration, not the Jellyfin stream
index. mpv gives it the same meaning: the position in the sideloaded WebVTT
list, loaded as external subtitle files (mpv_tracks).
TRACES: UR-020 | IR-018, DR-023