Files
KiraTV---App-Linux/libs/shared/interfaces/src/lib/settings.interface.ts
T
2026-05-03 23:43:09 +02:00

43 lines
1.1 KiB
TypeScript

import { Language } from './language.enum';
import { StreamFormat } from './stream-format.enum';
import { Theme } from './theme.enum';
/**
* Contains all types of supported video players
*/
export enum VideoPlayer {
VideoJs = 'videojs',
Html5Player = 'html5',
MPV = 'mpv',
VLC = 'vlc',
ArtPlayer = 'artplayer',
}
export enum StartupBehavior {
FirstView = 'first-view',
RestoreLastView = 'restore-last-view',
}
/**
* Describes all available settings options of the application
*/
export interface Settings {
player: VideoPlayer;
epgUrl: string[];
streamFormat: StreamFormat;
language: Language;
showCaptions: boolean;
showDashboard: boolean;
startupBehavior: StartupBehavior;
/** Show the desktop footer bar for external playback status */
showExternalPlaybackBar?: boolean;
theme: Theme;
mpvPlayerPath: string;
mpvReuseInstance: boolean;
vlcPlayerPath: string;
remoteControl: boolean;
remoteControlPort: number;
/** Custom download folder path (uses system Downloads folder if not set) */
downloadFolder?: string;
}