From b17a757ee5a21d988c08a54600f91b69183d68c9 Mon Sep 17 00:00:00 2001 From: devdatt Date: Fri, 5 Dec 2025 09:22:39 +0530 Subject: [PATCH] status update --- encoder/status.php | 150 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 139 insertions(+), 11 deletions(-) diff --git a/encoder/status.php b/encoder/status.php index bf1ed14..56acfc1 100755 --- a/encoder/status.php +++ b/encoder/status.php @@ -287,7 +287,53 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-

RTMP Server

+

RTMP0 Server

+ &1"); + $status = trim($status); + + if ($status === "active") + $serviceEnabled = true; + else + $serviceEnabled = false; + + $m3u8_url = 'https://example.com/live/stream.m3u8'; + ?> + +
+
+
+ + 📋 +
+
+
+
+ Service + + + Enabled + + Disabled + +
+ +
+ + + + + + + +
+
+
+
+ +
+

RTMP1 Server

&1"); $status = trim($status); @@ -375,11 +421,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
-

Udp Service

+
+

Udp0 Service

&1"); + $status = shell_exec("sudo systemctl is-active encoder-udp0 2>&1"); $status = trim($status); if ($status === "active") @@ -390,11 +435,94 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
- - 📋 +
+
+
+ Service + + + Enabled + + Disabled +
+ +
+ + + + + + + +
+
+
+
+
+

Udp1 Service

+ &1"); + $status = trim($status); + + if ($status === "active") + $serviceEnabled = true; + else + $serviceEnabled = false; + ?> + +
+
+
+
+
+ Service + + + Enabled + + Disabled + +
+ +
+ + + + + + + +
+
+
+
+
+

Udp2 Service

+ &1"); + $status = trim($status); + + if ($status === "active") + $serviceEnabled = true; + else + $serviceEnabled = false; + ?> + +
+
@@ -425,7 +553,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
+

Custom Output Service

&1"); @@ -473,7 +601,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { controls autoplay playsinline - src="http://127.0.0.1/shree/bhattji.m3u8"> + src="http://127.0.0.1/hls/shree/bhattji.m3u8"> Your browser does not support HTML5 HLS playback.