summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-08-22 00:15:10 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-08-22 00:15:10 +0300
commit46d1e0e31f7e6e23029f2a7cc83056321e8504c7 (patch)
treede41fae7dceb591cfae4788b27836e572582b127
parent4f6adc157492f631a587d93773e1c9f40a852937 (diff)
lws: cams: fix autoplay for safari on ios
-rw-r--r--localwebsite/config.php2
-rw-r--r--localwebsite/htdocs/assets/app.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/localwebsite/config.php b/localwebsite/config.php
index c874055..10bbcb7 100644
--- a/localwebsite/config.php
+++ b/localwebsite/config.php
@@ -50,7 +50,7 @@ return [
'static' => [
'app.css' => 10,
- 'app.js' => 4,
+ 'app.js' => 5,
'polyfills.js' => 1,
'modem.js' => 2,
'inverter.js' => 2,
diff --git a/localwebsite/htdocs/assets/app.js b/localwebsite/htdocs/assets/app.js
index ff2295d..9574c8c 100644
--- a/localwebsite/htdocs/assets/app.js
+++ b/localwebsite/htdocs/assets/app.js
@@ -120,6 +120,8 @@ window.Cameras = {
video.autoplay = true;
video.muted = true;
+ video.playsInline = true;
+ video.autoplay = true;
if (window.browserInfo.ios)
video.setAttribute('controls', 'controls');