perf: 🚀 Adjust options to support scrcpy v3.0

This commit is contained in:
viarotel 2024-11-25 13:11:56 +08:00
parent 10eb063e3c
commit 0602676a3e
7 changed files with 77 additions and 36 deletions

View File

@ -270,6 +270,9 @@
"preferences.video.refresh-rate.placeholder": "60", "preferences.video.refresh-rate.placeholder": "60",
"preferences.video.display-orientation.name": "Display Orientation", "preferences.video.display-orientation.name": "Display Orientation",
"preferences.video.display-orientation.placeholder": "Device orientation", "preferences.video.display-orientation.placeholder": "Device orientation",
"preferences.video.angle.name": "Rotation Angle",
"preferences.video.angle.placeholder": "No rotation, format: 15",
"preferences.video.angle.tips": "Note: This option is also effective during recording",
"preferences.video.screen-cropping.name": "Crop", "preferences.video.screen-cropping.name": "Crop",
"preferences.video.screen-cropping.placeholder": "No crop, format: 1224:1440:0:0", "preferences.video.screen-cropping.placeholder": "No crop, format: 1224:1440:0:0",
"preferences.video.display.name": "Display", "preferences.video.display.name": "Display",
@ -286,8 +289,11 @@
"preferences.device.stay-awake.name": "Stay Awake", "preferences.device.stay-awake.name": "Stay Awake",
"preferences.device.stay-awake.placeholder": "Prevent device sleep", "preferences.device.stay-awake.placeholder": "Prevent device sleep",
"preferences.device.stay-awake.tips": "Wired only", "preferences.device.stay-awake.tips": "Wired only",
"preferences.device.control-in-close-screen.name": "Turn Off Screen", "preferences.device.turnScreenOff.name": "Turn Off Screen",
"preferences.device.control-in-close-screen.placeholder": "Turn off device screen when controlling", "preferences.device.turnScreenOff.placeholder": "Turn off device screen when controlling",
"preferences.device.screenOffTimeout.name": "Screen Timeout",
"preferences.device.screenOffTimeout.placeholder": "Device Default",
"preferences.device.screenOffTimeout.tips": "Modify the screen timeout setting and restore the device default on exit",
"preferences.device.control-end-video.name": "Turn Off at End Screen", "preferences.device.control-end-video.name": "Turn Off at End Screen",
"preferences.device.control-end-video.placeholder": "Turn off screen when control ends", "preferences.device.control-end-video.placeholder": "Turn off screen when control ends",
"preferences.device.control-in-stop-charging.name": "Stop Charging", "preferences.device.control-in-stop-charging.name": "Stop Charging",
@ -324,8 +330,8 @@
"preferences.record.format.audio.placeholder": "opus", "preferences.record.format.audio.placeholder": "opus",
"preferences.record.time-limit.name": "Recording Time Limit", "preferences.record.time-limit.name": "Recording Time Limit",
"preferences.record.time-limit.placeholder": "No time limit", "preferences.record.time-limit.placeholder": "No time limit",
"preferences.record.lock-video-orientation.name": "Video Direction", "preferences.record.orientation.name": "Video Direction",
"preferences.record.lock-video-orientation.placeholder": "Device Orientation", "preferences.record.orientation.placeholder": "Device Orientation",
"preferences.record.no-video-playback.name": "Disable Video Playback", "preferences.record.no-video-playback.name": "Disable Video Playback",
"preferences.record.no-video-playback.placeholder": "Video playback will be disabled during recording when enabled", "preferences.record.no-video-playback.placeholder": "Video playback will be disabled during recording when enabled",
"preferences.record.no-video-playback.tips": "Note: Video will still be recorded, just playback disabled", "preferences.record.no-video-playback.tips": "Note: Video will still be recorded, just playback disabled",

View File

@ -270,6 +270,9 @@
"preferences.video.refresh-rate.placeholder": "60", "preferences.video.refresh-rate.placeholder": "60",
"preferences.video.display-orientation.name": "Ориентация дисплея", "preferences.video.display-orientation.name": "Ориентация дисплея",
"preferences.video.display-orientation.placeholder": "Ориентация устройства", "preferences.video.display-orientation.placeholder": "Ориентация устройства",
"preferences.video.angle.name": "Угол поворота",
"preferences.video.angle.placeholder": "Без поворота, формат: 15",
"preferences.video.angle.tips": "Примечание: Этот параметр также действует при записи",
"preferences.video.screen-cropping.name": "Обрезка", "preferences.video.screen-cropping.name": "Обрезка",
"preferences.video.screen-cropping.placeholder": "Без обрезки, формат: 1224:1440:0:0", "preferences.video.screen-cropping.placeholder": "Без обрезки, формат: 1224:1440:0:0",
"preferences.video.display.name": "Дисплей", "preferences.video.display.name": "Дисплей",
@ -286,8 +289,11 @@
"preferences.device.stay-awake.name": "Не выключать экран", "preferences.device.stay-awake.name": "Не выключать экран",
"preferences.device.stay-awake.placeholder": "Предотвратить переход устройства в спящий режим", "preferences.device.stay-awake.placeholder": "Предотвратить переход устройства в спящий режим",
"preferences.device.stay-awake.tips": "Только проводное подключение", "preferences.device.stay-awake.tips": "Только проводное подключение",
"preferences.device.control-in-close-screen.name": "Выключить экран", "preferences.device.turnScreenOff.name": "Выключить экран",
"preferences.device.control-in-close-screen.placeholder": "Выключить экран устройства во время управления", "preferences.device.turnScreenOff.placeholder": "Выключить экран устройства во время управления",
"preferences.device.screenOffTimeout.name": "Тайм-аут экрана",
"preferences.device.screenOffTimeout.placeholder": "По умолчанию устройства",
"preferences.device.screenOffTimeout.tips": "Измените настройку тайм-аута экрана и восстановите значение по умолчанию устройства при выходе",
"preferences.device.control-end-video.name": "Выключить экран при завершении", "preferences.device.control-end-video.name": "Выключить экран при завершении",
"preferences.device.control-end-video.placeholder": "Выключить экран при завершении управления", "preferences.device.control-end-video.placeholder": "Выключить экран при завершении управления",
"preferences.device.control-in-stop-charging.name": "Остановить зарядку", "preferences.device.control-in-stop-charging.name": "Остановить зарядку",
@ -324,8 +330,8 @@
"preferences.record.format.audio.placeholder": "opus", "preferences.record.format.audio.placeholder": "opus",
"preferences.record.time-limit.name": "Ограничение времени записи", "preferences.record.time-limit.name": "Ограничение времени записи",
"preferences.record.time-limit.placeholder": "Без ограничения времени", "preferences.record.time-limit.placeholder": "Без ограничения времени",
"preferences.record.lock-video-orientation.name": "Ориентация видео", "preferences.record.orientation.name": "Ориентация видео",
"preferences.record.lock-video-orientation.placeholder": "Ориентация устройства", "preferences.record.orientation.placeholder": "Ориентация устройства",
"preferences.record.no-video-playback.name": "Отключить воспроизведение видео", "preferences.record.no-video-playback.name": "Отключить воспроизведение видео",
"preferences.record.no-video-playback.placeholder": "При включении воспроизведение видео будет отключено во время записи", "preferences.record.no-video-playback.placeholder": "При включении воспроизведение видео будет отключено во время записи",
"preferences.record.no-video-playback.tips": "Примечание: Видео все равно будет записано, просто воспроизведение отключено", "preferences.record.no-video-playback.tips": "Примечание: Видео все равно будет записано, просто воспроизведение отключено",

View File

@ -270,6 +270,9 @@
"preferences.video.video-code.placeholder": "h.264", "preferences.video.video-code.placeholder": "h.264",
"preferences.video.display-orientation.name": "显示方向", "preferences.video.display-orientation.name": "显示方向",
"preferences.video.display-orientation.placeholder": "设备显示方向", "preferences.video.display-orientation.placeholder": "设备显示方向",
"preferences.video.angle.name": "旋转角度",
"preferences.video.angle.placeholder": "不旋转格式15",
"preferences.video.angle.tips": "注意:该选项在录制时同样有效",
"preferences.video.screen-cropping.name": "屏幕裁剪", "preferences.video.screen-cropping.name": "屏幕裁剪",
"preferences.video.screen-cropping.placeholder": "不裁剪格式1224:1440:0:0", "preferences.video.screen-cropping.placeholder": "不裁剪格式1224:1440:0:0",
"preferences.video.display.name": "显示器", "preferences.video.display.name": "显示器",
@ -286,8 +289,11 @@
"preferences.device.stay-awake.name": "保持唤醒", "preferences.device.stay-awake.name": "保持唤醒",
"preferences.device.stay-awake.placeholder": "开启后将防止设备进入睡眠状态", "preferences.device.stay-awake.placeholder": "开启后将防止设备进入睡眠状态",
"preferences.device.stay-awake.tips": "仅有线方式连接时有效", "preferences.device.stay-awake.tips": "仅有线方式连接时有效",
"preferences.device.control-in-close-screen.name": "控制时关闭屏幕", "preferences.device.turnScreenOff.name": "控制时关闭屏幕",
"preferences.device.control-in-close-screen.placeholder": "开启后控制设备时将自动关闭设备屏幕", "preferences.device.turnScreenOff.placeholder": "开启后控制设备时将自动关闭设备屏幕",
"preferences.device.screenOffTimeout.name": "屏幕超时",
"preferences.device.screenOffTimeout.placeholder": "设备默认",
"preferences.device.screenOffTimeout.tips": "修改屏幕关闭超时设置,并在退出时恢复设备默认",
"preferences.device.control-end-video.name": "控制结束关闭屏幕", "preferences.device.control-end-video.name": "控制结束关闭屏幕",
"preferences.device.control-end-video.placeholder": "开启后停止控制设备将自动关闭设备屏幕", "preferences.device.control-end-video.placeholder": "开启后停止控制设备将自动关闭设备屏幕",
"preferences.device.control-in-stop-charging.name": "控制时禁用自动亮屏", "preferences.device.control-in-stop-charging.name": "控制时禁用自动亮屏",
@ -324,8 +330,8 @@
"preferences.record.format.audio.placeholder": "opus", "preferences.record.format.audio.placeholder": "opus",
"preferences.record.time-limit.name": "录制时长", "preferences.record.time-limit.name": "录制时长",
"preferences.record.time-limit.placeholder": "不限时长", "preferences.record.time-limit.placeholder": "不限时长",
"preferences.record.lock-video-orientation.name": "录制视频方向", "preferences.record.orientation.name": "录制视频方向",
"preferences.record.lock-video-orientation.placeholder": "设备默认方向", "preferences.record.orientation.placeholder": "设备默认方向",
"preferences.record.no-video-playback.name": "禁用视频播放", "preferences.record.no-video-playback.name": "禁用视频播放",
"preferences.record.no-video-playback.placeholder": "开启后录制时将禁用视频播放", "preferences.record.no-video-playback.placeholder": "开启后录制时将禁用视频播放",
"preferences.record.no-video-playback.tips": "注意:只是禁用了播放但是依然会录制视频", "preferences.record.no-video-playback.tips": "注意:只是禁用了播放但是依然会录制视频",

View File

@ -270,6 +270,9 @@
"preferences.video.video-code.placeholder": "h.264", "preferences.video.video-code.placeholder": "h.264",
"preferences.video.display-orientation.name": "顯示方向", "preferences.video.display-orientation.name": "顯示方向",
"preferences.video.display-orientation.placeholder": "裝置顯示方向", "preferences.video.display-orientation.placeholder": "裝置顯示方向",
"preferences.video.angle.name": "旋轉角度",
"preferences.video.angle.placeholder": "不旋轉格式15",
"preferences.video.angle.tips": "注意:此選項在錄製時同樣有效",
"preferences.video.screen-cropping.name": "螢幕裁剪", "preferences.video.screen-cropping.name": "螢幕裁剪",
"preferences.video.screen-cropping.placeholder": "不裁剪格式1224:1440:0:0", "preferences.video.screen-cropping.placeholder": "不裁剪格式1224:1440:0:0",
"preferences.video.display.name": "顯示器", "preferences.video.display.name": "顯示器",
@ -286,8 +289,11 @@
"preferences.device.stay-awake.name": "保持喚醒", "preferences.device.stay-awake.name": "保持喚醒",
"preferences.device.stay-awake.placeholder": "開啟後將防止裝置進入睡眠狀態", "preferences.device.stay-awake.placeholder": "開啟後將防止裝置進入睡眠狀態",
"preferences.device.stay-awake.tips": "僅有線方式連接時有效", "preferences.device.stay-awake.tips": "僅有線方式連接時有效",
"preferences.device.control-in-close-screen.name": "控制時關閉螢幕", "preferences.device.turnScreenOff.name": "控制時關閉螢幕",
"preferences.device.control-in-close-screen.placeholder": "開啟後控制裝置時將自動關閉裝置螢幕", "preferences.device.turnScreenOff.placeholder": "開啟後控制裝置時將自動關閉裝置螢幕",
"preferences.device.screenOffTimeout.name": "屏幕超時",
"preferences.device.screenOffTimeout.placeholder": "設備預設",
"preferences.device.screenOffTimeout.tips": "修改屏幕關閉超時設置,並在退出時恢復設備預設",
"preferences.device.control-end-video.name": "控制結束關閉螢幕", "preferences.device.control-end-video.name": "控制結束關閉螢幕",
"preferences.device.control-end-video.placeholder": "開啟後停止控制裝置將自動關閉裝置螢幕", "preferences.device.control-end-video.placeholder": "開啟後停止控制裝置將自動關閉裝置螢幕",
"preferences.device.control-in-stop-charging.name": "控制時停用自動亮螢幕", "preferences.device.control-in-stop-charging.name": "控制時停用自動亮螢幕",
@ -324,8 +330,8 @@
"preferences.record.format.audio.placeholder": "opus", "preferences.record.format.audio.placeholder": "opus",
"preferences.record.time-limit.name": "錄製時長", "preferences.record.time-limit.name": "錄製時長",
"preferences.record.time-limit.placeholder": "不限時長", "preferences.record.time-limit.placeholder": "不限時長",
"preferences.record.lock-video-orientation.name": "錄製影片方向", "preferences.record.orientation.name": "錄製影片方向",
"preferences.record.lock-video-orientation.placeholder": "裝置預設方向", "preferences.record.orientation.placeholder": "裝置預設方向",
"preferences.record.no-video-playback.name": "停用影片播放", "preferences.record.no-video-playback.name": "停用影片播放",
"preferences.record.no-video-playback.placeholder": "開啟後錄製時將停用影片播放", "preferences.record.no-video-playback.placeholder": "開啟後錄製時將停用影片播放",
"preferences.record.no-video-playback.tips": "注意:只是停用了播放但是依然會錄製影片", "preferences.record.no-video-playback.tips": "注意:只是停用了播放但是依然會錄製影片",

View File

@ -2,13 +2,22 @@ export default {
label: 'preferences.device.name', label: 'preferences.device.name',
field: 'scrcpy', field: 'scrcpy',
children: { children: {
showTouches: { screenOffTimeout: {
label: 'preferences.device.show-touch.name', label: 'preferences.device.screenOffTimeout.name',
field: '--show-touches', field: '--screen-off-timeout',
type: 'Switch', type: 'InputNumber',
value: undefined, value: undefined,
placeholder: 'preferences.device.show-touch.placeholder', placeholder: 'preferences.device.screenOffTimeout.placeholder',
tips: 'preferences.device.show-touch.tips', tips: 'preferences.device.screenOffTimeout.tips',
append: 's',
},
overlayDisplay: {
label: 'preferences.device.display-overlay.name',
field: '--display-overlay',
type: 'Input',
value: undefined,
placeholder: 'preferences.device.display-overlay.placeholder',
tips: 'preferences.device.display-overlay.tips',
}, },
stayAwake: { stayAwake: {
label: 'preferences.device.stay-awake.name', label: 'preferences.device.stay-awake.name',
@ -19,11 +28,11 @@ export default {
tips: 'preferences.device.stay-awake.tips', tips: 'preferences.device.stay-awake.tips',
}, },
turnScreenOff: { turnScreenOff: {
label: 'preferences.device.control-in-close-screen.name', label: 'preferences.device.turnScreenOff.name',
field: '--turn-screen-off', field: '--turn-screen-off',
type: 'Switch', type: 'Switch',
value: undefined, value: undefined,
placeholder: 'preferences.device.control-in-close-screen.placeholder', placeholder: 'preferences.device.turnScreenOff.placeholder',
}, },
powerOffOnClose: { powerOffOnClose: {
label: 'preferences.device.control-end-video.name', label: 'preferences.device.control-end-video.name',
@ -40,13 +49,13 @@ export default {
placeholder: 'preferences.device.control-in-stop-charging.placeholder', placeholder: 'preferences.device.control-in-stop-charging.placeholder',
tips: 'preferences.device.control-in-stop-charging.tips', tips: 'preferences.device.control-in-stop-charging.tips',
}, },
overlayDisplay: { showTouches: {
label: 'preferences.device.display-overlay.name', label: 'preferences.device.show-touch.name',
field: '--display-overlay', field: '--show-touches',
type: 'Input', type: 'Switch',
value: undefined, value: undefined,
placeholder: 'preferences.device.display-overlay.placeholder', placeholder: 'preferences.device.show-touch.placeholder',
tips: 'preferences.device.display-overlay.tips', tips: 'preferences.device.show-touch.tips',
}, },
}, },
} }

View File

@ -52,12 +52,12 @@ export default {
}, },
], ],
}, },
lockVideoOrientation: { recordOrientation: {
label: 'preferences.record.lock-video-orientation.name', label: 'preferences.record.orientation.name',
field: '--lock-video-orientation', field: '--record-orientation',
type: 'Select', type: 'Select',
value: undefined, value: undefined,
placeholder: 'preferences.record.lock-video-orientation.placeholder', placeholder: 'preferences.record.orientation.placeholder',
options: [ options: [
{ label: '0°', value: '0' }, { label: '0°', value: '0' },
{ label: '90°', value: '90' }, { label: '90°', value: '90' },

View File

@ -107,6 +107,15 @@ export default {
{ label: 'flip-270°', value: 'flip270' }, { label: 'flip-270°', value: 'flip270' },
], ],
}, },
angle: {
label: 'preferences.video.angle.name',
field: '--angle',
type: 'InputNumber',
value: undefined,
placeholder: 'preferences.video.angle.placeholder',
tips: 'preferences.video.angle.tips',
append: 'deg',
},
crop: { crop: {
label: 'preferences.video.screen-cropping.name', label: 'preferences.video.screen-cropping.name',
field: '--crop', field: '--crop',
@ -130,8 +139,7 @@ export default {
}, },
videoBuffer: { videoBuffer: {
label: 'preferences.video.video-buffer.name', label: 'preferences.video.video-buffer.name',
// field: '--video-buffer', field: '--video-buffer',
field: '--display-buffer',
type: 'InputNumber', type: 'InputNumber',
value: undefined, value: undefined,
placeholder: 'preferences.video.video-buffer.placeholder', placeholder: 'preferences.video.video-buffer.placeholder',