Skip to content

Commit

Permalink
andriodapp autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Nov 12, 2023
1 parent 1fa86aa commit 4553cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htag/runners/androidapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def create_webview(self, *args):
webview = webView(activity)
webview.getSettings().setJavaScriptEnabled(True)
webview.getSettings().setDomStorageEnabled(True)
webView.getSettings().setMediaPlaybackRequiresUserGesture(False); # so can autoplay !
webview.setWebViewClient(webViewClient())
activity.setContentView(webview)
webview.loadUrl(urlStartPage) # !important
Expand Down

0 comments on commit 4553cf3

Please sign in to comment.