From dd25feea252c68de9ecd32e6d23ad9c959ba7128 Mon Sep 17 00:00:00 2001 From: Alex Kim Date: Mon, 21 Apr 2025 05:01:21 +1000 Subject: [PATCH] Update --- app/(auth)/player/direct-player.tsx | 8 ++++---- components/video-player/controls/Controls.tsx | 6 +++--- modules/index.ts | 12 ++++++++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/app/(auth)/player/direct-player.tsx b/app/(auth)/player/direct-player.tsx index de658cf4..c4e1eba8 100644 --- a/app/(auth)/player/direct-player.tsx +++ b/app/(auth)/player/direct-player.tsx @@ -6,7 +6,7 @@ import { getDownloadedFileUrl } from "@/hooks/useDownloadedFileOpener"; import { useHaptic } from "@/hooks/useHaptic"; import { useInvalidatePlaybackProgressCache } from "@/hooks/useRevalidatePlaybackProgressCache"; import { useWebSocket } from "@/hooks/useWebsockets"; -import { MPVPlayerView, VlcPlayerView } from "@/modules"; +import { MpvPlayerView, VlcPlayerView } from "@/modules"; // import type { // PipStartedPayload, // PlaybackStatePayload, @@ -15,9 +15,9 @@ import { MPVPlayerView, VlcPlayerView } from "@/modules"; // } from "@/modules/VlcPlayer.types"; import type { - MPVPlayerViewRef, + MpvPlayerViewRef, PlaybackStatePayload, -} from "@/modules/MPVPlayer.types"; +} from "@/modules/MpvPlayer.types"; import { apiAtom, userAtom } from "@/providers/JellyfinProvider"; import { useSettings } from "@/utils/atoms/settings"; import { getStreamUrl } from "@/utils/jellyfin/media/getStreamUrl"; @@ -448,7 +448,7 @@ export default function page() { paddingRight: ignoreSafeAreas ? 0 : insets.right, }} > - ; + videoRef: MutableRefObject; isPlaying: boolean; isSeeking: SharedValue; cacheProgress: SharedValue; diff --git a/modules/index.ts b/modules/index.ts index 63eb373e..edafdc6e 100644 --- a/modules/index.ts +++ b/modules/index.ts @@ -12,6 +12,13 @@ import { } from "./VlcPlayer.types"; import VlcPlayerView from "./VlcPlayerView"; +import { + MpvPlayerSource, + MpvPlayerViewProps, + MpvPlayerViewRef, +} from "./MpvPlayer.types"; +import MpvPlayerView from "./MpvPlayerView"; + export { VlcPlayerView, VlcPlayerViewProps, @@ -24,4 +31,9 @@ export { VlcPlayerSource, TrackInfo, ChapterInfo, + // MPV Player exports + MpvPlayerView, + MpvPlayerViewProps, + MpvPlayerViewRef, + MpvPlayerSource, };