视频添加.webm;.flv;.mkv;.wmv后缀

This commit is contained in:
fangxiang 2022-05-28 15:43:47 +08:00
parent f75e774a19
commit 806d655a81
4 changed files with 34 additions and 17 deletions

View File

@ -760,14 +760,15 @@ export default defineComponent({
}
};
watch(
() => filters.value,
() => {
if ($store.state.advanced_debug && filters.value.length != 0) {
filters.value = [];
}
}
);
//
// watch(
// () => filters.value,
// () => {
// if ($store.state.advanced_debug && filters.value.length != 0) {
// filters.value = [];
// }
// }
// );
return {
show_dialog,

View File

@ -159,7 +159,7 @@
? showClockDialog()
: item_data.window_type == 'EwindowType::Weather'
? showWeatherDialog()
: showPlaylistDialog('.mp4;.avi;.ts;')
: showPlaylistDialog('.mp4;.avi;.ts;.webm;.flv;.mkv;.wmv')
"
v-model="item_data.media_url"
:readonly="

View File

@ -994,7 +994,7 @@ export default defineComponent({
if (old_signal_source) {
const obj = await file_manage_dialog.value.showDialogAsync(
"select",
".mp4;.avi;.ts;.jpg;.png;"
".mp4;.avi;.ts;.webm;.flv;.mkv;.wmv;.jpg;.png;"
);
if (obj) {
interface __I {
@ -1008,7 +1008,11 @@ export default defineComponent({
if (
file.name.endsWith("mp4") ||
file.name.endsWith("avi") ||
file.name.endsWith("ts")
file.name.endsWith("ts") ||
file.name.endsWith("webm") ||
file.name.endsWith("flv") ||
file.name.endsWith("mkv") ||
file.name.endsWith("wmv")
) {
entity.window_type = "EwindowType::Multimedia";
entity.media_url = JSON.stringify([full_path]);
@ -1098,7 +1102,7 @@ export default defineComponent({
const obj = await file_manage_dialog.value.showDialogAsync(
"select",
".mp4;.avi;.ts;.jpg;.png;"
".mp4;.avi;.ts;.webm;.flv;.mkv;.wmv;.jpg;.png;"
);
if (obj) {
@ -1113,7 +1117,11 @@ export default defineComponent({
if (
file.name.endsWith("mp4") ||
file.name.endsWith("avi") ||
file.name.endsWith("ts")
file.name.endsWith("ts") ||
file.name.endsWith("webm") ||
file.name.endsWith("flv") ||
file.name.endsWith("mkv") ||
file.name.endsWith("wmv")
) {
entity.window_type = "EwindowType::Multimedia";
entity.media_url = JSON.stringify([full_path]);

View File

@ -1093,7 +1093,7 @@ export default defineComponent({
const obj = await file_manage_dialog.value.showDialogAsync(
"select",
".mp4;.avi;.ts;.jpg;.png;"
".mp4;.avi;.ts;.webm;.flv;.mkv;.wmv;.jpg;.png;"
);
if (obj) {
interface __I {
@ -1107,7 +1107,11 @@ export default defineComponent({
if (
file.name.endsWith("mp4") ||
file.name.endsWith("avi") ||
file.name.endsWith("ts")
file.name.endsWith("ts") ||
file.name.endsWith("webm") ||
file.name.endsWith("flv") ||
file.name.endsWith("mkv") ||
file.name.endsWith("wmv")
) {
entity.window_type = "EwindowType::Multimedia";
entity.media_url = JSON.stringify([full_path]);
@ -1175,7 +1179,7 @@ export default defineComponent({
if (old_signal_source) {
const obj = await file_manage_dialog.value.showDialogAsync(
"select",
".mp4;.avi;.ts;.jpg;.png;"
".mp4;.avi;.ts;.webm;.flv;.mkv;.wmv;.jpg;.png;"
);
if (obj) {
interface __I {
@ -1189,7 +1193,11 @@ export default defineComponent({
if (
file.name.endsWith("mp4") ||
file.name.endsWith("avi") ||
file.name.endsWith("ts")
file.name.endsWith("ts") ||
file.name.endsWith("webm") ||
file.name.endsWith("flv") ||
file.name.endsWith("mkv") ||
file.name.endsWith("wmv")
) {
entity.window_type = "EwindowType::Multimedia";
entity.media_url = JSON.stringify([full_path]);