Use new flag Streaming to enable streaming buttons instead of Screen for consistency

This commit is contained in:
Luc
2023-10-04 07:41:52 +08:00
parent 4a8988b9ed
commit fbf8450db5
4 changed files with 5 additions and 4 deletions

View File

@@ -491,6 +491,7 @@ const commandsQuery = (req, res, SendWS) => {
FWTargetID: '40',
Setup: 'Enabled',
Screen: 'HMI V3',
Streaming: 'Enabled',
SDConnection: 'direct',
SerialProtocol: 'Raw',
Authentication: 'Disabled',

Binary file not shown.

View File

@@ -25,7 +25,7 @@ import { useSettingsContextFn } from '../../../contexts'
const capabilities = {
Process: (path, filename) => {
if (
(useSettingsContextFn.getValue('Screen') &&
(useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
useSettingsContextFn.getValue('SDConnection') == 'direct') ||
useSettingsContextFn.getValue('SDConnection') == 'shared'
)
@@ -118,7 +118,7 @@ const commands = {
},
play: (path, filename) => {
if (
useSettingsContextFn.getValue('Screen') &&
useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
useSettingsContextFn.getValue('SDConnection') == 'direct'
) {
let fullpath =

View File

@@ -23,7 +23,7 @@ import { canProcessFile } from '../../helpers'
import { useUiContextFn, useSettingsContextFn } from '../../../contexts'
const capabilities = {
Process: (path, filename) => {
if (useSettingsContextFn.getValue('Screen')) {
if (useSettingsContextFn.getValue('Streaming') == 'Enabled') {
return canProcessFile(filename)
}
return false
@@ -115,7 +115,7 @@ const commands = {
},
play: (path, filename) => {
if (
useSettingsContextFn.getValue('Screen') &&
useSettingsContextFn.getValue('Streaming') == 'Enabled' &&
useSettingsContextFn.getValue('SDConnection') == 'direct'
) {
let fullpath =