From 078c6891316eb399913514f5fecbae7348b0e6b5 Mon Sep 17 00:00:00 2001 From: golgetahir Date: Sat, 1 Aug 2026 20:20:09 +0300 Subject: [PATCH] Refactor whip.html page --- src/main/webapp/whip.html | 323 +++++++++++++++++++++----------------- 1 file changed, 183 insertions(+), 140 deletions(-) diff --git a/src/main/webapp/whip.html b/src/main/webapp/whip.html index bd5d6e8e..04d040c6 100644 --- a/src/main/webapp/whip.html +++ b/src/main/webapp/whip.html @@ -1,149 +1,192 @@ + - Webcam ingest - + WebRTC Samples > WHIP Publish + + + + + + +
+
+
+

WebRTC Samples > WHIP Publish

+
+
+ +
+
+ +
+ +
+ +
+ Status: offline +
+
+ +
+ +
+
+ + +
+ + + + + + + } + } + else { + document.getElementById("playLink").style.display = "none"; + document.getElementById("playLinkPlaceHolder").style.display = "block"; + } + }); + + + client.ingest(mediaStream).then(function () { + console.log("Ingesting"); + }) + .catch(function (err) { + console.error(err); + }); + } + } + + function stop() { + client.destroy(); + setStatus("offline"); + button.innerHTML = "Start"; + document.getElementById("playLink").style.display = "none"; + document.getElementById("playLinkPlaceHolder").style.display = "block"; + + client = null; + } + + init(); + + window.buttonClicked = buttonClicked; + window.client = client; + + - \ No newline at end of file +