From 5da33a00941ab1b210d6111e68b28d2182fbb983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 27 May 2020 10:57:03 +0200 Subject: [PATCH] Disable HW accelerated codecs Fixes a crash when H.264 is used (in P2P mode). --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index bb3dc9c..623049d 100644 --- a/main.js +++ b/main.js @@ -23,6 +23,10 @@ const config = require('./app/features/config'); // We need this because of https://github.com/electron/electron/issues/18214 app.commandLine.appendSwitch('disable-site-isolation-trials'); +// https://bugs.chromium.org/p/chromium/issues/detail?id=1086373 +app.commandLine.appendSwitch('disable-webrtc-hw-encoding'); +app.commandLine.appendSwitch('disable-webrtc-hw-decoding'); + // Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580 app.allowRendererProcessReuse = false;