21 lines
802 B
JavaScript
21 lines
802 B
JavaScript
//#region src/client/options.ts
|
|
const pluginOptions = __MD_POWER_INJECT_OPTIONS__;
|
|
const installed = {
|
|
dashjs: __MD_POWER_DASHJS_INSTALLED__,
|
|
hlsjs: __MD_POWER_HLSJS_INSTALLED__,
|
|
mpegtsjs: __MD_POWER_MPEGTSJS_INSTALLED__
|
|
};
|
|
const ART_PLAYER_SUPPORTED_VIDEO_TYPES = [
|
|
"mp4",
|
|
"mp3",
|
|
"webm",
|
|
"ogg"
|
|
];
|
|
if (installed.dashjs) ART_PLAYER_SUPPORTED_VIDEO_TYPES.push("mpd", "dash");
|
|
if (installed.hlsjs) ART_PLAYER_SUPPORTED_VIDEO_TYPES.push("m3u8", "hls");
|
|
if (installed.mpegtsjs) ART_PLAYER_SUPPORTED_VIDEO_TYPES.push("ts", "flv");
|
|
const INJECT_TIMELINE_KEY = Symbol(__VUEPRESS_DEV__ ? "timeline" : "");
|
|
const INJECT_COLLAPSE_KEY = Symbol(__VUEPRESS_DEV__ ? "collapse" : "");
|
|
|
|
//#endregion
|
|
export { ART_PLAYER_SUPPORTED_VIDEO_TYPES, INJECT_COLLAPSE_KEY, INJECT_TIMELINE_KEY, installed, pluginOptions }; |