Merge pull request #6271 from thornbill/media-session-subscriber

Refactor media session to playback subscriber
This commit is contained in:
Bill Thornton
2025-01-11 16:26:27 -05:00
committed by GitHub
12 changed files with 271 additions and 383 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import type {
PlayerStateInfo
} from '@jellyfin/sdk/lib/generated-client';
import type { ItemDto } from 'types/base/models/item-dto';
export interface BufferedRange {
start?: number;
end?: number;
@@ -31,7 +33,7 @@ export interface MediaSource extends MediaSourceInfo {
export interface PlayerState {
PlayState: PlayState;
NowPlayingItem: BaseItemDto | null;
NowPlayingItem: ItemDto | null;
NextItem: BaseItemDto | null;
NextMediaType: MediaType | null;
MediaSource: MediaSource | null;
+4
View File
@@ -11,3 +11,7 @@ export interface Plugin {
type: PluginType | string
priority?: number
}
export interface PlayerPlugin extends Plugin {
isLocalPlayer?: boolean
}