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

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
commit 1362284d9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 271 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
}