@dialtribe/react-sdk 0.1.4 → 0.1.7
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 +20 -11
- package/dist/dialtribe-player.js.map +1 -1
- package/dist/dialtribe-player.mjs +20 -11
- package/dist/dialtribe-player.mjs.map +1 -1
- package/dist/dialtribe-streamer.js +20 -11
- package/dist/dialtribe-streamer.js.map +1 -1
- package/dist/dialtribe-streamer.mjs +20 -11
- package/dist/dialtribe-streamer.mjs.map +1 -1
- package/dist/index.js +20 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2947,18 +2947,27 @@ function DialtribePlayer({
|
|
|
2947
2947
|
const wasLiveStream = initialPlaybackTypeRef.current === "hls";
|
|
2948
2948
|
const playerConfig = React2.useMemo(
|
|
2949
2949
|
() => ({
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2950
|
+
hls: isLiveStream ? {
|
|
2951
|
+
// Performance
|
|
2952
|
+
enableWorker: true,
|
|
2953
|
+
lowLatencyMode: true,
|
|
2954
|
+
// Live edge synchronization - start close to live, not at beginning
|
|
2955
|
+
liveSyncDurationCount: 3,
|
|
2956
|
+
// Start 3 segments behind live edge
|
|
2957
|
+
liveMaxLatencyDurationCount: 10,
|
|
2958
|
+
// Seek to live if >10 segments behind
|
|
2959
|
+
maxLiveSyncPlaybackRate: 1.5,
|
|
2960
|
+
// Speed up to catch up to live edge
|
|
2961
|
+
// Buffer settings
|
|
2962
|
+
maxLoadingDelay: 4,
|
|
2963
|
+
maxBufferLength: 30,
|
|
2964
|
+
maxBufferSize: 60 * 1e3 * 1e3,
|
|
2965
|
+
// 60MB
|
|
2966
|
+
// Bandwidth estimation
|
|
2967
|
+
minAutoBitrate: 0
|
|
2968
|
+
} : void 0
|
|
2960
2969
|
}),
|
|
2961
|
-
[
|
|
2970
|
+
[isLiveStream]
|
|
2962
2971
|
);
|
|
2963
2972
|
const formatTimestamp = (seconds) => {
|
|
2964
2973
|
if (!seconds || isNaN(seconds) || !isFinite(seconds)) return "00:00:00";
|