From 392222b1730374eeb7e3ac1a50f0281daebf957e Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Sun, 5 Oct 2025 23:17:30 +0530 Subject: [PATCH] Updated HLS Player --- src/components/WebRtcPlayer.astro | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/WebRtcPlayer.astro b/src/components/WebRtcPlayer.astro index 530bf1f..a8de5a2 100644 --- a/src/components/WebRtcPlayer.astro +++ b/src/components/WebRtcPlayer.astro @@ -6,9 +6,16 @@ interface Props extends HTMLAttributes<"div"> { streamUrl: string; iceServers?: any[]; poster?: string; + onEnded?: Function; } -const { streamUrl, iceServers = [], poster, class: className } = Astro.props; +const { + streamUrl, + iceServers = [], + poster, + class: className, + onEnded, +} = Astro.props; const id = `${Math.random().toString(36).slice(2)}`; --- @@ -118,7 +125,11 @@ const id = `${Math.random().toString(36).slice(2)}`; -