mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 16:46:06 -08:00
fix(jellyfin): make terminal play work with a running app and report progress (#288)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user