Merge pull request #180 from tomvaneyck/hardware-media

Disables HardwareMediaKeyHandling
This commit is contained in:
J. Ryan Stinnett 2021-04-30 13:01:53 +01:00 committed by GitHub
commit 20e4459bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -803,6 +803,9 @@ protocol.registerSchemesAsPrivileged([{
// transition into the user's browser.
app.enableSandbox();
// We disable media controls here. We do this because calls use audio and video elements and they sometimes capture the media keys. See https://github.com/vector-im/element-web/issues/15704
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService');
app.on('ready', async () => {
try {
await setupGlobals();