From 9111c7e355289aae76866be274ace524efccd828 Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Sun, 5 Oct 2025 23:18:26 +0530 Subject: [PATCH] Updated HLS Player --- src/components/WebRtcPlayer.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WebRtcPlayer.astro b/src/components/WebRtcPlayer.astro index a8de5a2..0ebeff5 100644 --- a/src/components/WebRtcPlayer.astro +++ b/src/components/WebRtcPlayer.astro @@ -189,7 +189,7 @@ const id = `${Math.random().toString(36).slice(2)}`; if (["disconnected", "failed", "closed"].includes(state)) { emit("disconnected", { msg: "Stream Ended" }); - onEnded(); + if (onEnded) onEnded(); } });