@dialtribe/react-sdk 0.1.2 → 0.1.6
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.
- package/dist/dialtribe-player.js +7 -11
- package/dist/dialtribe-player.js.map +1 -1
- package/dist/dialtribe-player.mjs +7 -11
- package/dist/dialtribe-player.mjs.map +1 -1
- package/dist/dialtribe-streamer.js +7 -11
- package/dist/dialtribe-streamer.js.map +1 -1
- package/dist/dialtribe-streamer.mjs +7 -11
- package/dist/dialtribe-streamer.mjs.map +1 -1
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2940,18 +2940,14 @@ function DialtribePlayer({
|
|
|
2940
2940
|
const wasLiveStream = initialPlaybackTypeRef.current === "hls";
|
|
2941
2941
|
const playerConfig = useMemo(
|
|
2942
2942
|
() => ({
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
enableWorker: true
|
|
2950
|
-
} : {}
|
|
2951
|
-
}
|
|
2952
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2943
|
+
hls: isLiveStream ? {
|
|
2944
|
+
maxLoadingDelay: 10,
|
|
2945
|
+
minAutoBitrate: 0,
|
|
2946
|
+
lowLatencyMode: true,
|
|
2947
|
+
enableWorker: true
|
|
2948
|
+
} : void 0
|
|
2953
2949
|
}),
|
|
2954
|
-
[
|
|
2950
|
+
[isLiveStream]
|
|
2955
2951
|
);
|
|
2956
2952
|
const formatTimestamp = (seconds) => {
|
|
2957
2953
|
if (!seconds || isNaN(seconds) || !isFinite(seconds)) return "00:00:00";
|