@dialtribe/react-sdk 0.1.4 → 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
package/dist/index.mjs
CHANGED
|
@@ -1060,18 +1060,14 @@ function DialtribePlayer({
|
|
|
1060
1060
|
const wasLiveStream = initialPlaybackTypeRef.current === "hls";
|
|
1061
1061
|
const playerConfig = useMemo(
|
|
1062
1062
|
() => ({
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
enableWorker: true
|
|
1070
|
-
} : {}
|
|
1071
|
-
}
|
|
1072
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1063
|
+
hls: isLiveStream ? {
|
|
1064
|
+
maxLoadingDelay: 10,
|
|
1065
|
+
minAutoBitrate: 0,
|
|
1066
|
+
lowLatencyMode: true,
|
|
1067
|
+
enableWorker: true
|
|
1068
|
+
} : void 0
|
|
1073
1069
|
}),
|
|
1074
|
-
[
|
|
1070
|
+
[isLiveStream]
|
|
1075
1071
|
);
|
|
1076
1072
|
const formatTimestamp = (seconds) => {
|
|
1077
1073
|
if (!seconds || isNaN(seconds) || !isFinite(seconds)) return "00:00:00";
|