Skip to content

Commit

Permalink
Merge pull request #179204 from microsoft/merogge/auto-play-bypass
Browse files Browse the repository at this point in the history
allow audio to play even when not initiated with a user's gesture
  • Loading branch information
meganrogge authored Apr 5, 2023
2 parents 899cdd5 + 1759ad3 commit 40e27f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ function configureCommandlineSwitchesSync(cliArgs) {
*/
app.commandLine.appendSwitch('disable-features', 'CalculateNativeWinOcclusion');

/**
* Allow media to play even if no user gesture is used to fix issues like #176284
*/
app.commandLine.appendSwitch('disable-features', 'CalculateNativeWinOcclusion,UnifiedAutoplay');

// Support JS Flags
const jsFlags = getJSFlags(cliArgs);
if (jsFlags) {
Expand Down

0 comments on commit 40e27f4

Please sign in to comment.