1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Refactor media session to playback subscriber

This commit is contained in:
Bill Thornton 2024-10-27 01:22:23 -04:00
parent c3614a0c8c
commit 68bac124af
12 changed files with 268 additions and 383 deletions

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;

View file

@ -11,3 +11,7 @@ export interface Plugin {
type: PluginType | string
priority?: number
}
export interface PlayerPlugin extends Plugin {
isLocalPlayer?: boolean
}