@halibegic/react-video-player 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2539,7 +2539,7 @@ function hs({ url: e, isLive: t }) {
|
|
|
2539
2539
|
);
|
|
2540
2540
|
}, [l]), T = z(
|
|
2541
2541
|
(w, x) => {
|
|
2542
|
-
console.error("[Player][HLS] ERROR", w, x), f ?
|
|
2542
|
+
console.error("[Player][HLS] ERROR", w, x), t && !f ? (console.log(
|
|
2543
2543
|
"[Player][HLS] Stream failed, attempting failover retry..."
|
|
2544
2544
|
), p(!0), setTimeout(() => {
|
|
2545
2545
|
if (n.current && c.current)
|
|
@@ -2548,9 +2548,9 @@ function hs({ url: e, isLive: t }) {
|
|
|
2548
2548
|
} catch (v) {
|
|
2549
2549
|
console.error("[Player][HLS] Failover retry failed:", v);
|
|
2550
2550
|
}
|
|
2551
|
-
}, 1e3));
|
|
2551
|
+
}, 1e3)) : console.error("[Player][HLS] Stream failed and retry limit reached");
|
|
2552
2552
|
},
|
|
2553
|
-
[f,
|
|
2553
|
+
[t, f, c, e]
|
|
2554
2554
|
), j = z(() => {
|
|
2555
2555
|
if (!c.current) return;
|
|
2556
2556
|
const v = t ? {
|
|
@@ -2630,10 +2630,7 @@ const ms = I.video`
|
|
|
2630
2630
|
function gs({ url: e }) {
|
|
2631
2631
|
const [t, n] = Y(null), r = W((s) => s.delay), i = z(async () => {
|
|
2632
2632
|
n(
|
|
2633
|
-
r ? e.replace(
|
|
2634
|
-
"playlist.m3u8",
|
|
2635
|
-
`playlist_fmp4_dvr_timeshift-${r}.m3u8`
|
|
2636
|
-
) : e
|
|
2633
|
+
r ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${r}.m3u8`) : e
|
|
2637
2634
|
);
|
|
2638
2635
|
}, [r, e]);
|
|
2639
2636
|
return J(() => {
|