视频添加.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, // watch(
() => { // () => filters.value,
if ($store.state.advanced_debug && filters.value.length != 0) { // () => {
filters.value = []; // if ($store.state.advanced_debug && filters.value.length != 0) {
} // filters.value = [];
} // }
); // }
// );
return { return {
show_dialog, show_dialog,

View File

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

View File

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

View File

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