Skip to content

Commit

Permalink
Disable HW accelerated codecs
Browse files Browse the repository at this point in the history
Fixes a crash when H.264 is used (in P2P mode).
  • Loading branch information
saghul committed May 27, 2020
1 parent 20ec0bf commit 5da33a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5da33a0

Please sign in to comment.