forked from 77media/video-flow
59 lines
2.2 KiB
TypeScript
59 lines
2.2 KiB
TypeScript
/** Language configuration options */
|
|
export const LanguageOptions = [
|
|
{ value: "english", label: "English", isVip: false, code: 'EN' },
|
|
{ value: "chinese", label: "Chinese", isVip: false, code: 'ZH' },
|
|
{ value: "japanese", label: "Japanese", isVip: false, code: 'JA' },
|
|
{ value: "spanish", label: "Spanish", isVip: false, code: 'ES' },
|
|
{ value: "portuguese", label: "Portuguese", isVip: false, code: 'PT' },
|
|
{ value: "hindi", label: "Hindi", isVip: false, code: 'HI' },
|
|
{ value: "korean", label: "Korean", isVip: false, code: 'KO' },
|
|
{ value: "arabic", label: "Arabic", isVip: false, code: 'AR' },
|
|
{ value: "russian", label: "Russian", isVip: false, code: 'RU' },
|
|
{ value: "thai", label: "Thai", isVip: false, code: 'TH' },
|
|
{ value: "french", label: "French", isVip: false, code: 'FR' },
|
|
{ value: "german", label: "German", isVip: false, code: 'DE' },
|
|
{ value: "vietnamese", label: "Vietnamese", isVip: false, code: 'VI' },
|
|
{ value: "indonesian", label: "Indonesian", isVip: false, code: 'ID' }
|
|
];
|
|
|
|
/** Video duration options */
|
|
export const VideoDurationOptions = [
|
|
{ value: "8s", label: "8s" },
|
|
{ value: "1min", label: "1min" },
|
|
{ value: "2min", label: "2min" },
|
|
{ value: "unlimited", label: "auto" },
|
|
];
|
|
|
|
/** Language type */
|
|
export type LanguageValue = typeof LanguageOptions[number]['value'];
|
|
|
|
/** Video duration type */
|
|
export type VideoDurationValue = typeof VideoDurationOptions[number]['value'];
|
|
|
|
/** Aspect ratio type */
|
|
export type AspectRatioValue = 'VIDEO_ASPECT_RATIO_LANDSCAPE' | 'VIDEO_ASPECT_RATIO_PORTRAIT';
|
|
|
|
/** Portrait/Anime type */
|
|
export type PortraitAnimeValue = 'portrait' | string;
|
|
|
|
/** Configuration options interface */
|
|
export interface ConfigOptions {
|
|
language: LanguageValue;
|
|
expansion_mode: boolean;
|
|
videoDuration: VideoDurationValue;
|
|
aspect_ratio: AspectRatioValue;
|
|
pcode: PortraitAnimeValue;
|
|
mode: "auto" | "manual";
|
|
}
|
|
|
|
/** Default configuration */
|
|
export const defaultConfig: ConfigOptions = {
|
|
language: 'english',
|
|
expansion_mode: true,
|
|
videoDuration: 'unlimited',
|
|
aspect_ratio: 'VIDEO_ASPECT_RATIO_LANDSCAPE',
|
|
pcode: 'portrait',
|
|
mode: 'auto',
|
|
};
|
|
|