From e1b777193e478af3dd83f148f38ce5a41656259c Mon Sep 17 00:00:00 2001 From: Taylor Smith Date: Thu, 1 Feb 2024 08:53:19 -0600 Subject: [PATCH] [Stream] WebRTC Template Improvements (#4157) * Add port numbers to fix stackblitz automatic startup * Pull the variables up and show clear instructions * fixup! Pull the variables up and show clear instructions --------- Co-authored-by: Peter Bacon Darwin --- templates/stream/webrtc/package.json | 4 ++-- templates/stream/webrtc/src/index.html | 26 ++++++++++++++++++++------ 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/templates/stream/webrtc/package.json b/templates/stream/webrtc/package.json index d2de7e1a8f54..8491d0e6db21 100644 --- a/templates/stream/webrtc/package.json +++ b/templates/stream/webrtc/package.json @@ -4,8 +4,8 @@ "private": true, "scripts": { "build-ts": "tsc && cp dist/WHIPClient.js src/WHIPClient.js && cp dist/WHEPClient.js src/WHEPClient.js && cp dist/negotiateConnectionWithClientOffer.js src/negotiateConnectionWithClientOffer.js", - "dev": "WRANGLER_SEND_METRICS=false wrangler pages dev --local ./src", - "start-stackblitz": "WRANGLER_SEND_METRICS=false wrangler pages dev --local ./src" + "dev": "WRANGLER_SEND_METRICS=false wrangler pages dev --local --port 1180 ./src", + "start-stackblitz": "WRANGLER_SEND_METRICS=false wrangler pages dev --local --port 1180 ./src" }, "devDependencies": { "typescript": "^4.5.4", diff --git a/templates/stream/webrtc/src/index.html b/templates/stream/webrtc/src/index.html index 1915aebe1f4a..10a8b5e3d470 100644 --- a/templates/stream/webrtc/src/index.html +++ b/templates/stream/webrtc/src/index.html @@ -1,5 +1,21 @@ + +

Playing video using WHEP

@@ -28,12 +43,11 @@
(remote content)