mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-02 12:08:37 +01:00
feat(casting): add CastSelection model and resolution helpers
This commit is contained in:
@@ -70,3 +70,18 @@ export const DEFAULT_CAST_STATE: CastPlayerState = {
|
||||
volume: 0.5,
|
||||
isBuffering: false,
|
||||
};
|
||||
|
||||
/**
|
||||
* What is currently loaded on the cast — the single source of truth for
|
||||
* audio / subtitle / quality / version selection.
|
||||
*/
|
||||
export interface CastSelection {
|
||||
/** MediaSource (version) id. */
|
||||
mediaSourceId: string;
|
||||
/** Absolute MediaStream index of the audio track. */
|
||||
audioStreamIndex: number;
|
||||
/** Absolute MediaStream index of the subtitle track; -1 = subtitles off. */
|
||||
subtitleStreamIndex: number;
|
||||
/** Quality cap in bits/second; undefined = unconstrained. */
|
||||
maxBitrate?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user