fix(jellyfin): make terminal play work with a running app and report progress (#288)

This commit is contained in:
sudacode authored and GitHub committed 2026-10-10 17:27:48 -07:00
1 parent 78eca52b7e
commit 78a9b6346f
33 files changed
+934 -924

No files matched your search

@@ -1,5 +1,18 @@
import type { JellyfinTimelinePlaybackState } from '../../core/services/jellyfin-playback-reporter';
type JellyfinTimelineReport = (state: JellyfinTimelinePlaybackState) => Promise<unknown>;
export type JellyfinPlaybackReporterLike = {
reportPlaying: JellyfinTimelineReport;
reportProgress: JellyfinTimelineReport;
reportStopped: JellyfinTimelineReport;
};
export type ActiveJellyfinRemotePlaybackState = {
itemId: string;
// Bound at launch to the session that started playback, so reports flow for CLI play and
// casting alike, independent of the cast-control websocket.
reporter: JellyfinPlaybackReporterLike;
mediaSourceId?: string;
audioStreamIndex?: number | null;
subtitleStreamIndex?: number | null;