mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
type fixes
This commit is contained in:
parent
fefb0cda01
commit
181de15b93
4 changed files with 8 additions and 9 deletions
|
|
@ -207,7 +207,7 @@ const CatalogSection = ({ catalog }: CatalogSectionProps) => {
|
|||
horizontal
|
||||
showsHorizontalScrollIndicator={false}
|
||||
scrollEventThrottle={16}
|
||||
decelerationRate="fast"
|
||||
decelerationRate="normal"
|
||||
scrollEnabled={true}
|
||||
nestedScrollEnabled={true}
|
||||
contentContainerStyle={StyleSheet.flatten([
|
||||
|
|
|
|||
|
|
@ -149,18 +149,18 @@ const AndroidVideoPlayer: React.FC = () => {
|
|||
|
||||
// Track previous video session to reset subtitle offset only when video actually changes
|
||||
const previousVideoRef = useRef<{ uri?: string; episodeId?: string }>({});
|
||||
|
||||
|
||||
// Reset subtitle offset when starting a new video session
|
||||
useEffect(() => {
|
||||
const currentVideo = { uri, episodeId };
|
||||
const previousVideo = previousVideoRef.current;
|
||||
|
||||
|
||||
// Only reset if this is actually a new video (uri or episodeId changed)
|
||||
if (previousVideo.uri !== undefined &&
|
||||
(previousVideo.uri !== currentVideo.uri || previousVideo.episodeId !== currentVideo.episodeId)) {
|
||||
if (previousVideo.uri !== undefined &&
|
||||
(previousVideo.uri !== currentVideo.uri || previousVideo.episodeId !== currentVideo.episodeId)) {
|
||||
setSubtitleOffsetSec(0);
|
||||
}
|
||||
|
||||
|
||||
// Update the ref for next comparison
|
||||
previousVideoRef.current = currentVideo;
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
|
@ -874,7 +874,6 @@ const AndroidVideoPlayer: React.FC = () => {
|
|||
brightness={brightness}
|
||||
controlsTimeout={controlsTimeout}
|
||||
resizeMode={playerState.resizeMode}
|
||||
resizeMode={playerState.resizeMode}
|
||||
/>
|
||||
|
||||
<PlayerControls
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { Dimensions, Platform } from 'react-native';
|
|||
|
||||
// Use only resize modes supported by all player backends
|
||||
// (not all players support 'stretch' or 'none')
|
||||
export type PlayerResizeMode = 'contain' | 'cover';
|
||||
export type PlayerResizeMode = 'contain' | 'cover' | 'stretch';
|
||||
|
||||
export const usePlayerState = () => {
|
||||
// Playback State
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Single source of truth for the app version displayed in Settings
|
||||
// Update this when bumping app version
|
||||
|
||||
export const APP_VERSION = '1.3.5';
|
||||
export const APP_VERSION = '1.3.6';
|
||||
|
||||
export function getDisplayedAppVersion(): string {
|
||||
return APP_VERSION;
|
||||
|
|
|
|||
Loading…
Reference in a new issue