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:
parent
c3614a0c8c
commit
68bac124af
12 changed files with 268 additions and 383 deletions
|
@ -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;
|
||||
|
|
|
@ -11,3 +11,7 @@ export interface Plugin {
|
|||
type: PluginType | string
|
||||
priority?: number
|
||||
}
|
||||
|
||||
export interface PlayerPlugin extends Plugin {
|
||||
isLocalPlayer?: boolean
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue