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

API can only be initiated by a user gesture #274

Closed
incafox opened this issue Dec 16, 2018 · 1 comment
Closed

API can only be initiated by a user gesture #274

incafox opened this issue Dec 16, 2018 · 1 comment

Comments

@incafox
Copy link

incafox commented Dec 16, 2018

Hi everybody, i have a problem sending a click button order with .evalJavascript method, it show me:
[INFO:CONSOLE(1)] "Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
i know in java android i can make something like this:

WebView mWebView = (WebView) findViewById(R.id.web_view);
mWebView.getSettings().setMediaPlaybackRequiresUserGesture(false);

so, the question is how to disabled this petition?

@incafox
Copy link
Author

incafox commented Dec 16, 2018

never mind, i just added that java code to the source.

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

1 participant