Skip to content

API can only be initiated by a user gesture #274

@LubeckHuaman

Description

@LubeckHuaman

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions