mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-28 23:12:23 +00:00
feat(player): add mpv cache and buffer configuration
This commit is contained in:
@@ -43,6 +43,17 @@ export type VideoSource = {
|
||||
initialSubtitleId?: number;
|
||||
/** MPV audio track ID to select on start (1-based) */
|
||||
initialAudioId?: number;
|
||||
/** MPV cache/buffer configuration */
|
||||
cacheConfig?: {
|
||||
/** Whether caching is enabled: "auto" (default), "yes", or "no" */
|
||||
enabled?: "auto" | "yes" | "no";
|
||||
/** Seconds of video to buffer (default: 10, range: 5-120) */
|
||||
cacheSeconds?: number;
|
||||
/** Maximum cache size in MB (default: 150, range: 50-500) */
|
||||
maxBytes?: number;
|
||||
/** Maximum backward cache size in MB (default: 50, range: 25-200) */
|
||||
maxBackBytes?: number;
|
||||
};
|
||||
};
|
||||
|
||||
export type MpvPlayerViewProps = {
|
||||
|
||||
Reference in New Issue
Block a user