From b9405e7374d5f84cec41a7fa2f9477813e1c2305 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 17 Feb 2022 04:35:45 +0900 Subject: nodeweb: disable user action for media requirement --- src/pw/cloudef/rpg/Nodeweb.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pw/cloudef') diff --git a/src/pw/cloudef/rpg/Nodeweb.java b/src/pw/cloudef/rpg/Nodeweb.java index ba79f60..57a9ef1 100644 --- a/src/pw/cloudef/rpg/Nodeweb.java +++ b/src/pw/cloudef/rpg/Nodeweb.java @@ -46,6 +46,7 @@ public class Nodeweb extends Base { web.getSettings().setDomStorageEnabled(true); web.getSettings().setDatabaseEnabled(true); web.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); + if (android.os.Build.VERSION.SDK_INT > 16) web.getSettings().setMediaPlaybackRequiresUserGesture(false); web.setWebViewClient(new WebViewClient(){ public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Log.v("nodeweb", "error: " + errorCode); -- cgit v1.2.3-70-g09d2