mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-13 07:42:24 +00:00
19 lines
559 B
TypeScript
19 lines
559 B
TypeScript
import type {
|
|
BaseItemDto,
|
|
MediaStream,
|
|
} from "@jellyfin/sdk/lib/generated-client";
|
|
import { atom } from "jotai";
|
|
|
|
export type TVSubtitleModalState = {
|
|
item: BaseItemDto;
|
|
mediaSourceId?: string | null;
|
|
subtitleTracks: MediaStream[];
|
|
currentSubtitleIndex: number;
|
|
onSubtitleIndexChange: (index: number) => void;
|
|
onServerSubtitleDownloaded?: () => void;
|
|
onLocalSubtitleDownloaded?: (path: string) => void;
|
|
refreshSubtitleTracks?: () => Promise<MediaStream[]>;
|
|
} | null;
|
|
|
|
export const tvSubtitleModalAtom = atom<TVSubtitleModalState>(null);
|