Skip to content

User gesture required #14

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

Open
JoOzO96 opened this issue Mar 5, 2020 · 2 comments
Open

User gesture required #14

JoOzO96 opened this issue Mar 5, 2020 · 2 comments

Comments

@JoOzO96
Copy link

JoOzO96 commented Mar 5, 2020

I'am developing a app to see videos with autoplay, but I need click in the screen to chrome don't block the request because he auto blocks autoplay. This app running on TV with no user access to click.

In electron I need add this command to resolve this

app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');

In webview folder I think we need edit AndroidJSActivity to add this command to replay this same command

this.myWebView.getSettings().setMediaPlaybackRequiresUserGesture(false);

I tried to add pull request but do not have access to do.

@Chhekur
Copy link
Member

Chhekur commented Mar 5, 2020

We'll fix this issue ASAP ; )

@Chhekur
Copy link
Member

Chhekur commented Mar 11, 2020

I'am developing a app to see videos with autoplay, but I need click in the screen to chrome don't block the request because he auto blocks autoplay. This app running on TV with no user access to click.

In electron I need add this command to resolve this

app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');

In webview folder I think we need edit AndroidJSActivity to add this command to replay this same command

this.myWebView.getSettings().setMediaPlaybackRequiresUserGesture(false);

I tried to add pull request but do not have access to do.

Actually first you need to fork the repo then you can open a pull request for that ; )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants