Closed chiyuki0325 closed 2 years ago
Chromium 在 Linux 平台下默认不会硬解视频,在原版 Chromium 中可以通过加入 --enable-features=VaapiVideoDecoder 命令行参数打开视频硬解功能,而此客户端加入参数之后,仍然不会硬解视频,所以希望在客户端代码中加入 app.commandLine.appendSwitch('enable-features', 'VaapiVideoDecoder') 来允许视频硬解。
--enable-features=VaapiVideoDecoder
app.commandLine.appendSwitch('enable-features', 'VaapiVideoDecoder')
试过了,好像没有作用
如果在electron下测试通过并有证明,再考虑添加。
Chromium 在 Linux 平台下默认不会硬解视频,在原版 Chromium 中可以通过加入
--enable-features=VaapiVideoDecoder
命令行参数打开视频硬解功能,而此客户端加入参数之后,仍然不会硬解视频,所以希望在客户端代码中加入app.commandLine.appendSwitch('enable-features', 'VaapiVideoDecoder')
来允许视频硬解。