@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
|
@@ -1038,18 +1038,27 @@ function DialtribePlayer({
|
|
|
1038
1038
|
const wasLiveStream = initialPlaybackTypeRef.current === "hls";
|
|
1039
1039
|
const playerConfig = useMemo(
|
|
1040
1040
|
() => ({
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1041
|
+
hls: isLiveStream ? {
|
|
1042
|
+
// Performance
|
|
1043
|
+
enableWorker: true,
|
|
1044
|
+
lowLatencyMode: true,
|
|
1045
|
+
// Live edge synchronization - start close to live, not at beginning
|
|
1046
|
+
liveSyncDurationCount: 3,
|
|
1047
|
+
// Start 3 segments behind live edge
|
|
1048
|
+
liveMaxLatencyDurationCount: 10,
|
|
1049
|
+
// Seek to live if >10 segments behind
|
|
1050
|
+
maxLiveSyncPlaybackRate: 1.5,
|
|
1051
|
+
// Speed up to catch up to live edge
|
|
1052
|
+
// Buffer settings
|
|
1053
|
+
maxLoadingDelay: 4,
|
|
1054
|
+
maxBufferLength: 30,
|
|
1055
|
+
maxBufferSize: 60 * 1e3 * 1e3,
|
|
1056
|
+
// 60MB
|
|
1057
|
+
// Bandwidth estimation
|
|
1058
|
+
minAutoBitrate: 0
|
|
1059
|
+
} : void 0
|
|
1051
1060
|
}),
|
|
1052
|
-
[
|
|
1061
|
+
[isLiveStream]
|
|
1053
1062
|
);
|
|
1054
1063
|
const formatTimestamp = (seconds) => {
|
|
1055
1064
|
if (!seconds || isNaN(seconds) || !isFinite(seconds)) return "00:00:00";
|