aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Main.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-01-12 19:35:56 +0300
committerRblSb <msrblsb@gmail.com>2025-01-12 22:35:22 +0300
commitf84fdc40ba817b6a2d907484b1e1500197ceeafe (patch)
tree73a5b81e082d0ac1741c24742db12e6c2bd54249 /src/server/Main.hx
parent25b7ecb45d43018235c6a8eb5b4ce833f2dec668 (diff)
External audiotrack support
This works as voice over if video also has audio, changing video volume to 0.3. Also improve autoplay by playing videos muted and unmute on first page click. There is no mute if you use Firefox and allow autoplay on page (navigator.getAutoplayPolicy check).
Diffstat (limited to 'src/server/Main.hx')
-rw-r--r--src/server/Main.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index a0b255e..9c2f6e2 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -139,6 +139,8 @@ class Main {
trace("Global network is disabled in config");
} else {
if (!isNoState) Utils.getGlobalIp(ip -> {
+ final isIp6 = ip.contains(":");
+ if (isIp6) ip = '[$ip]';
globalIp = ip;
trace('Global: http://$globalIp:$port');
});
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage