summaryrefslogtreecommitdiff
path: root/src/pw/cloudef/rpg
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 04:35:45 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 04:35:45 +0900
commitb9405e7374d5f84cec41a7fa2f9477813e1c2305 (patch)
tree66481cb367f9f9b27b24e465cbaea014e0438783 /src/pw/cloudef/rpg
parentbc493cc00746e0ba6d17b77c122cbf33ed16e8e5 (diff)
nodeweb: disable user action for media requirement
Diffstat (limited to 'src/pw/cloudef/rpg')
-rw-r--r--src/pw/cloudef/rpg/Nodeweb.java1
1 files changed, 1 insertions, 0 deletions
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);