mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
37 lines
694 B
TypeScript
37 lines
694 B
TypeScript
import { type VideoJsPlayerOptions } from "video.js";
|
|
|
|
export const YT_TYPE = "video/youtube";
|
|
|
|
export const CONTROL_BAR_HEIGHT = 30;
|
|
|
|
export const VideoResizeKey: Record<string, number> = {
|
|
"1": 4,
|
|
"2": 2,
|
|
"3": 1,
|
|
"4": 0.5,
|
|
};
|
|
|
|
export const config = {
|
|
autoplay: true,
|
|
controlBar: {
|
|
children: [
|
|
"playToggle",
|
|
"currentTimeDisplay",
|
|
"progressControl",
|
|
"durationDisplay",
|
|
"volumePanel",
|
|
"pictureInPictureToggle",
|
|
"fullscreenToggle",
|
|
],
|
|
volumePanel: {
|
|
inline: false,
|
|
},
|
|
},
|
|
inactivityTimeout: 1000,
|
|
preload: "auto",
|
|
youtube: {
|
|
enablePrivacyEnhancedMode: true,
|
|
ytControls: 2,
|
|
},
|
|
} as VideoJsPlayerOptions;
|