@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/dialtribe-player.js
CHANGED
|
@@ -1044,18 +1044,14 @@ function DialtribePlayer({
|
|
|
1044
1044
|
const wasLiveStream = initialPlaybackTypeRef.current === "hls";
|
|
1045
1045
|
const playerConfig = react.useMemo(
|
|
1046
1046
|
() => ({
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
enableWorker: true
|
|
1054
|
-
} : {}
|
|
1055
|
-
}
|
|
1056
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1047
|
+
hls: isLiveStream ? {
|
|
1048
|
+
maxLoadingDelay: 10,
|
|
1049
|
+
minAutoBitrate: 0,
|
|
1050
|
+
lowLatencyMode: true,
|
|
1051
|
+
enableWorker: true
|
|
1052
|
+
} : void 0
|
|
1057
1053
|
}),
|
|
1058
|
-
[
|
|
1054
|
+
[isLiveStream]
|
|
1059
1055
|
);
|
|
1060
1056
|
const formatTimestamp = (seconds) => {
|
|
1061
1057
|
if (!seconds || isNaN(seconds) || !isFinite(seconds)) return "00:00:00";
|