Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 5fa208c

Browse files
Fixed bug with not start loading the video
1 parent 4bdb2cb commit 5fa208c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/main/java/com/coderbunker/kioskapp/KioskActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected void onCreate(Bundle savedInstanceState) {
9292
prefs = this.getSharedPreferences(
9393
"com.coderbunker.kioskapp", Context.MODE_PRIVATE);
9494

95-
URL = prefs.getString("url", "https://naibaben.github.io/");
95+
URL = prefs.getString("url", "https://coderbunker.github.io/kiosk-web/");
9696
String otp = prefs.getString("otp", null);
9797

9898
if (otp == null) {
@@ -140,6 +140,7 @@ public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError e
140140
}
141141
});
142142
webView.getSettings().setJavaScriptEnabled(true);
143+
webView.getSettings().setMediaPlaybackRequiresUserGesture(false);
143144
webView.loadUrl(URL);
144145

145146
Toast.makeText(this, "Loading " + URL, Toast.LENGTH_SHORT).show();

app/src/main/java/com/coderbunker/kioskapp/SettingsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void onClick(View v) {
7171
});
7272

7373
String otp = prefs.getString("otp", null);
74-
String url = prefs.getString("url", "https://naibaben.github.io/");
74+
String url = prefs.getString("url", "https://coderbunker.github.io/kiosk-web/");
7575
int hotp_counter = prefs.getInt("hotp_counter", 0);
7676

7777
editURL.setText(url);

0 commit comments

Comments
 (0)