Skip to content

Commit

Permalink
feat: Prevent audio output control via media keys
Browse files Browse the repository at this point in the history
Prevent the audio output from being controlled by media keys like
play/pause, prev/next, seek, etc. which might interfere with other media
content being played
  • Loading branch information
Melvin-Abraham committed Mar 25, 2023
1 parent 7ddb1d3 commit 829734d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ const assistantResponseHistory = new AssistantResponseHistory();
global.middlewareService = middlewareService;
global.assistantResponseHistory = assistantResponseHistory;

// Prevent the audio output from being controlled by media keys like play/pause,
// prev/next, seek, etc. which might interfere with other media content being played
app.commandLine.appendSwitch(
'disable-features',
'HardwareMediaKeyHandling',
);

/**
* Function invoked when the application is ready to start.
*/
Expand Down

0 comments on commit 829734d

Please sign in to comment.