mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-28 14:08:29 +00:00
Update
This commit is contained in:
@@ -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,
|
||||
}}
|
||||
>
|
||||
<MPVPlayerView
|
||||
<MpvPlayerView
|
||||
ref={videoRef}
|
||||
source={{
|
||||
uri: stream?.url || "",
|
||||
|
||||
@@ -5,8 +5,8 @@ import { useCreditSkipper } from "@/hooks/useCreditSkipper";
|
||||
import { useHaptic } from "@/hooks/useHaptic";
|
||||
import { useIntroSkipper } from "@/hooks/useIntroSkipper";
|
||||
import { useTrickplay } from "@/hooks/useTrickplay";
|
||||
import { MPVPlayerViewRef } from "@/modules/MPVPlayer.types";
|
||||
import type { TrackInfo, VlcPlayerViewRef } from "@/modules/VlcPlayer.types";
|
||||
import type { MpvPlayerViewRef, TrackInfo } from "@/modules/MpvPlayer.types";
|
||||
import { VlcPlayerViewRef } from "@/modules/VlcPlayer.types";
|
||||
import * as ScreenOrientation from "@/packages/expo-screen-orientation";
|
||||
import { apiAtom } from "@/providers/JellyfinProvider";
|
||||
import { VideoPlayer, useSettings } from "@/utils/atoms/settings";
|
||||
@@ -66,7 +66,7 @@ import { useControlsTimeout } from "./useControlsTimeout";
|
||||
|
||||
interface Props {
|
||||
item: BaseItemDto;
|
||||
videoRef: MutableRefObject<VlcPlayerViewRef | MPVPlayerViewRef | null>;
|
||||
videoRef: MutableRefObject<VlcPlayerViewRef | MpvPlayerViewRef | null>;
|
||||
isPlaying: boolean;
|
||||
isSeeking: SharedValue<boolean>;
|
||||
cacheProgress: SharedValue<number>;
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user