diff --git a/src/components/player/AndroidVideoPlayer.tsx b/src/components/player/AndroidVideoPlayer.tsx index b202a6f..8e69eff 100644 --- a/src/components/player/AndroidVideoPlayer.tsx +++ b/src/components/player/AndroidVideoPlayer.tsx @@ -530,7 +530,7 @@ const AndroidVideoPlayer: React.FC = () => { const cycleAspectRatio = () => { // Android: cycle through native resize modes - const resizeModes: ResizeModeType[] = ['contain', 'cover', 'stretch', 'none']; + const resizeModes: ResizeModeType[] = ['contain', 'cover', 'fill', 'none']; const currentIndex = resizeModes.indexOf(resizeMode); const nextIndex = (currentIndex + 1) % resizeModes.length; setResizeMode(resizeModes[nextIndex]); @@ -1091,6 +1091,7 @@ const AndroidVideoPlayer: React.FC = () => { useCustomSubtitles={useCustomSubtitles} currentSubtitle={currentSubtitle} subtitleSize={subtitleSize} + zoomScale={zoomScale} /> { useCustomSubtitles={useCustomSubtitles} currentSubtitle={currentSubtitle} subtitleSize={subtitleSize} + zoomScale={zoomScale} /> = ({ ))} + + {/* Online subtitles section */} + {isLoadingSubtitleList && ( + + + + )} + + {availableSubtitles.length > 0 && ( + <> + + + Online Subtitles + + + + {availableSubtitles.map((sub) => ( + + { + loadWyzieSubtitle(sub); + handleLanguageClose(); + }} + activeOpacity={0.85} + > + + + + {sub.display} + + + + + + + + + + ))} + + )} diff --git a/src/components/player/subtitles/CustomSubtitles.tsx b/src/components/player/subtitles/CustomSubtitles.tsx index 66bbedf..ea8df40 100644 --- a/src/components/player/subtitles/CustomSubtitles.tsx +++ b/src/components/player/subtitles/CustomSubtitles.tsx @@ -6,17 +6,28 @@ interface CustomSubtitlesProps { useCustomSubtitles: boolean; currentSubtitle: string; subtitleSize: number; + zoomScale?: number; // current video zoom scale; defaults to 1 } export const CustomSubtitles: React.FC = ({ useCustomSubtitles, currentSubtitle, subtitleSize, + zoomScale = 1, }) => { if (!useCustomSubtitles || !currentSubtitle) return null; + const inverseScale = 1 / zoomScale; return ( - + {currentSubtitle}