From 2287233e5a5fa0fbd60ab536e3b916364d1c535a Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Thu, 2 Oct 2025 20:10:42 +0530 Subject: [PATCH] New WebRTC Component Changes --- src/components/WebRtcPlayer.astro | 48 ++++++++++++------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/src/components/WebRtcPlayer.astro b/src/components/WebRtcPlayer.astro index db219c9..ee9a028 100644 --- a/src/components/WebRtcPlayer.astro +++ b/src/components/WebRtcPlayer.astro @@ -6,18 +6,11 @@ interface Props extends HTMLAttributes<"div"> { streamUrl: string; iceServers?: any[]; poster?: string; - checkStreamFn?: string; - retryInterval?: number; } -const { - streamUrl, - iceServers = [], - poster, - class: className, - checkStreamFn, - retryInterval = 5000, -} = Astro.props; +const { streamUrl, iceServers = [], poster, class: className } = Astro.props; + +const id = `${Math.random().toString(36).slice(2)}`; --- -
+
+ poster={poster}>
LIVE
-
+
- - ⤢
-