feat(renderer):实现多行字幕显示功能

- 在 CaptionStyle 组件中添加字幕行数设置选项
- 修改组件以支持多行字幕显示
- 优化字幕数据处理逻辑,支持按时间顺序显示多条字幕
This commit is contained in:
himeditator
2025-09-07 21:06:11 +08:00
parent 4abd6d0808
commit 4494b2c68b
9 changed files with 141 additions and 46 deletions

View File

@@ -66,7 +66,7 @@ export class CaptionEngine {
this.command.push('-a', allConfig.controls.audio ? '1' : '0')
if(allConfig.controls.recording) {
this.command.push('-r', '1')
this.command.push('-rp', allConfig.controls.recordingPath)
this.command.push('-rp', `"${allConfig.controls.recordingPath}"`)
}
this.port = Math.floor(Math.random() * (65535 - 1024 + 1)) + 1024
this.command.push('-p', this.port.toString())