mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-09 22:05:10 +00:00
Merge pull request #180 from tomvaneyck/hardware-media
Disables HardwareMediaKeyHandling
This commit is contained in:
commit
20e4459bb5
1 changed files with 3 additions and 0 deletions
|
@ -803,6 +803,9 @@ protocol.registerSchemesAsPrivileged([{
|
||||||
// transition into the user's browser.
|
// transition into the user's browser.
|
||||||
app.enableSandbox();
|
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 () => {
|
app.on('ready', async () => {
|
||||||
try {
|
try {
|
||||||
await setupGlobals();
|
await setupGlobals();
|
||||||
|
|
Loading…
Reference in a new issue