Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow audio to play even when not initiated with a user's gesture #179204

Merged
merged 10 commits into from Apr 5, 2023
5 changes: 5 additions & 0 deletions src/main.js
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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I must have misread the diff, can you de-duplicate L253 and this one. We only need single app.commandLine.appendSwitch('disable-features'


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