@dialtribe/react-sdk 0.1.6 → 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 +16 -3
- package/dist/dialtribe-player.js.map +1 -1
- package/dist/dialtribe-player.mjs +16 -3
- package/dist/dialtribe-player.mjs.map +1 -1
- package/dist/dialtribe-streamer.js +16 -3
- package/dist/dialtribe-streamer.js.map +1 -1
- package/dist/dialtribe-streamer.mjs +16 -3
- package/dist/dialtribe-streamer.mjs.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2941,10 +2941,23 @@ function DialtribePlayer({
|
|
|
2941
2941
|
const playerConfig = useMemo(
|
|
2942
2942
|
() => ({
|
|
2943
2943
|
hls: isLiveStream ? {
|
|
2944
|
-
|
|
2945
|
-
|
|
2944
|
+
// Performance
|
|
2945
|
+
enableWorker: true,
|
|
2946
2946
|
lowLatencyMode: true,
|
|
2947
|
-
|
|
2947
|
+
// Live edge synchronization - start close to live, not at beginning
|
|
2948
|
+
liveSyncDurationCount: 3,
|
|
2949
|
+
// Start 3 segments behind live edge
|
|
2950
|
+
liveMaxLatencyDurationCount: 10,
|
|
2951
|
+
// Seek to live if >10 segments behind
|
|
2952
|
+
maxLiveSyncPlaybackRate: 1.5,
|
|
2953
|
+
// Speed up to catch up to live edge
|
|
2954
|
+
// Buffer settings
|
|
2955
|
+
maxLoadingDelay: 4,
|
|
2956
|
+
maxBufferLength: 30,
|
|
2957
|
+
maxBufferSize: 60 * 1e3 * 1e3,
|
|
2958
|
+
// 60MB
|
|
2959
|
+
// Bandwidth estimation
|
|
2960
|
+
minAutoBitrate: 0
|
|
2948
2961
|
} : void 0
|
|
2949
2962
|
}),
|
|
2950
2963
|
[isLiveStream]
|