mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-31 11:53:50 +01:00
fix: 🐛 Resolve default recording error
This commit is contained in:
parent
f60245b11d
commit
358064ecd4
@ -8,8 +8,8 @@ import { openFloatControl } from '$/utils/device/index.js'
|
|||||||
|
|
||||||
const recordModel = {
|
const recordModel = {
|
||||||
default: {
|
default: {
|
||||||
excludes: '',
|
excludes: [],
|
||||||
command: '',
|
commands: [],
|
||||||
extname: config => config['--record-format'] || 'mp4',
|
extname: config => config['--record-format'] || 'mp4',
|
||||||
},
|
},
|
||||||
audio: {
|
audio: {
|
||||||
@ -64,17 +64,21 @@ export default {
|
|||||||
isRecord: ['default', 'audio'].includes(this.recordType),
|
isRecord: ['default', 'audio'].includes(this.recordType),
|
||||||
isCamera: ['camera'].includes(this.recordType),
|
isCamera: ['camera'].includes(this.recordType),
|
||||||
excludes: [
|
excludes: [
|
||||||
'--otg',
|
...new Set([
|
||||||
'--mouse=aoa',
|
'--otg',
|
||||||
'--keyboard=aoa',
|
'--mouse=aoa',
|
||||||
'--show-touches',
|
'--keyboard=aoa',
|
||||||
...this.activeModel.excludes,
|
'--show-touches',
|
||||||
|
...this.activeModel.excludes,
|
||||||
|
]),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
args += ` ${this.activeModel.commands.join(' ')}`
|
const commands = this.activeModel.commands || []
|
||||||
|
|
||||||
console.log('args', args)
|
if (commands.length) {
|
||||||
|
args += ` ${commands.join(' ')}`
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const recording = this.$scrcpy.record(row.id, {
|
const recording = this.$scrcpy.record(row.id, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user