diff --git a/package.json b/package.json index 2ad8bcd..0450000 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "media_player_client", - "version": "1.4.1", + "version": "1.4.2", "description": "A Quasar Framework app", "productName": "MediaPlayerClient", "author": "fangxiang ", diff --git a/src/components/AdvancedDebugDialog.vue b/src/components/AdvancedDebugDialog.vue index 9b3aac5..17d62a1 100644 --- a/src/components/AdvancedDebugDialog.vue +++ b/src/components/AdvancedDebugDialog.vue @@ -67,8 +67,8 @@ /> - - + + {{ $t("restart") }} diff --git a/src/components/SystemSettingDialog.vue b/src/components/SystemSettingDialog.vue index 154142b..bee221b 100644 --- a/src/components/SystemSettingDialog.vue +++ b/src/components/SystemSettingDialog.vue @@ -66,6 +66,7 @@ :disable="loading" /> - + @@ -906,6 +911,19 @@ export default defineComponent({ let contrast = ref(0); let hue = ref(0); + const function_output_board_attribute = ref( + ($store.state.device_attribute & Protocol.EDeviceAttribute.OutputBoard) != + 0 + ); + + watch( + () => $store.state.device_attribute, + (value) => { + function_output_board_attribute.value = + (value & Protocol.EDeviceAttribute.OutputBoard) != 0; + } + ); + let device_resolution = ref(""); let device_resolution_options: Ref = ref([]); let device_rotate = ref(0); @@ -1341,6 +1359,7 @@ export default defineComponent({ return { show_dialog, + function_output_board_attribute, loading, tab, auto_ip, diff --git a/src/pad/TopToolbar.vue b/src/pad/TopToolbar.vue index f2c5ae2..5c27f1b 100644 --- a/src/pad/TopToolbar.vue +++ b/src/pad/TopToolbar.vue @@ -68,6 +68,7 @@ @click="lowerWindow" /> + + @@ -191,10 +204,12 @@ import { useI18n } from "vue-i18n"; import { useStore } from "src/store"; import BackgroundImageDialog from "src/components/BackgroundImageDialog.vue"; import FileManageDialog from "src/components/FileManageDialog.vue"; +import SubtitleDialog from "src/components/SubtitleDialog.vue"; import CenterControlDialog from "src/components/CenterControlDialog.vue"; import AdvancedDebugDialog from "src/components/AdvancedDebugDialog.vue"; import GlobalData from "src/common/GlobalData"; +import { Protocol } from "src/entities/WSProtocol"; export default defineComponent({ name: "PadTopToolbarPage", @@ -202,6 +217,7 @@ export default defineComponent({ BackgroundImageDialog, FileManageDialog, CenterControlDialog, + SubtitleDialog, AdvancedDebugDialog, }, setup() { @@ -213,8 +229,23 @@ export default defineComponent({ () => $store.state.current_running_plan.trim() != "" ); + const function_center_control = ref( + ($store.state.device_attribute & + Protocol.EDeviceAttribute.CenterControl) != + 0 + ); + + watch( + () => $store.state.device_attribute, + (value) => { + function_center_control.value = + (value & Protocol.EDeviceAttribute.CenterControl) != 0; + } + ); + return { plan_running, + function_center_control, toogleFullScreen() { if (!$q.fullscreen.isCapable) {