mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-07 14:38:35 +01:00
feat(player): enable language-based track selection on mobile
This commit is contained in:
@@ -73,12 +73,16 @@ export const DownloadItems: React.FC<DownloadProps> = ({
|
||||
SelectedOptions | undefined
|
||||
>(undefined);
|
||||
|
||||
const playSettingsOptions = useMemo(
|
||||
() => ({ applyLanguagePreferences: true }),
|
||||
[],
|
||||
);
|
||||
const {
|
||||
defaultAudioIndex,
|
||||
defaultBitrate,
|
||||
defaultMediaSource,
|
||||
defaultSubtitleIndex,
|
||||
} = useDefaultPlaySettings(items[0], settings);
|
||||
} = useDefaultPlaySettings(items[0], settings, playSettingsOptions);
|
||||
|
||||
const userCanDownload = useMemo(
|
||||
() => user?.Policy?.EnableContentDownloading,
|
||||
|
||||
Reference in New Issue
Block a user