Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

支持 `HEVC` 编码视频播放 (#6406)

颖逸76deb3d0affd
diff --git a/app/electron/main.js b/app/electron/main.js
index 52de8bbe79..aed57b04fb 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -692,9 +692,12 @@ const initKernel = (initData) => {
}
app.setAsDefaultProtocolClient('siyuan')
+
app.commandLine.appendSwitch('disable-web-security')
app.commandLine.appendSwitch('auto-detect', 'false')
app.commandLine.appendSwitch('no-proxy-server')
+app.commandLine.appendSwitch('enable-features', 'PlatformHEVCDecoderSupport')
+
app.setPath('userData', app.getPath('userData') + '-Electron') // `~/.config` 下 Electron 相关文件夹名称改为 `SiYuan-Electron` https://github.com/siyuan-note/siyuan/issues/3349
app.whenReady().then(() => {