Merge branch 'develop' into remove-optimized-server

This commit is contained in:
Gauvain
2026-01-14 10:13:15 +01:00
committed by GitHub
22 changed files with 2374 additions and 30 deletions

View File

@@ -31,11 +31,15 @@ const SUBTITLE_SIZE_PRESETS = [
interface DropdownViewProps {
playbackSpeed?: number;
setPlaybackSpeed?: (speed: number, scope: PlaybackSpeedScope) => void;
showTechnicalInfo?: boolean;
onToggleTechnicalInfo?: () => void;
}
const DropdownView = ({
playbackSpeed = 1.0,
setPlaybackSpeed,
showTechnicalInfo = false,
onToggleTechnicalInfo,
}: DropdownViewProps) => {
const { subtitleTracks, audioTracks } = useVideoContext();
const { item, mediaSource } = usePlayerContext();
@@ -163,6 +167,21 @@ const DropdownView = ({
});
}
// Technical Info (at bottom)
if (onToggleTechnicalInfo) {
groups.push({
options: [
{
type: "action" as const,
label: showTechnicalInfo
? "Hide Technical Info"
: "Show Technical Info",
onPress: onToggleTechnicalInfo,
},
],
});
}
return groups;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
@@ -177,6 +196,8 @@ const DropdownView = ({
updateSettings,
playbackSpeed,
setPlaybackSpeed,
showTechnicalInfo,
onToggleTechnicalInfo,
// Note: subtitleTracks and audioTracks are intentionally excluded
// because we use subtitleTracksKey and audioTracksKey for stability
]);