@dialtribe/react-sdk 0.1.6 → 0.1.8
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 -5
- package/dist/dialtribe-streamer.js.map +1 -1
- package/dist/dialtribe-streamer.mjs +16 -5
- package/dist/dialtribe-streamer.mjs.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1061,10 +1061,23 @@ function DialtribePlayer({
|
|
|
1061
1061
|
const playerConfig = useMemo(
|
|
1062
1062
|
() => ({
|
|
1063
1063
|
hls: isLiveStream ? {
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
// Performance
|
|
1065
|
+
enableWorker: true,
|
|
1066
1066
|
lowLatencyMode: true,
|
|
1067
|
-
|
|
1067
|
+
// Live edge synchronization - start close to live, not at beginning
|
|
1068
|
+
liveSyncDurationCount: 3,
|
|
1069
|
+
// Start 3 segments behind live edge
|
|
1070
|
+
liveMaxLatencyDurationCount: 10,
|
|
1071
|
+
// Seek to live if >10 segments behind
|
|
1072
|
+
maxLiveSyncPlaybackRate: 1.5,
|
|
1073
|
+
// Speed up to catch up to live edge
|
|
1074
|
+
// Buffer settings
|
|
1075
|
+
maxLoadingDelay: 4,
|
|
1076
|
+
maxBufferLength: 30,
|
|
1077
|
+
maxBufferSize: 60 * 1e3 * 1e3,
|
|
1078
|
+
// 60MB
|
|
1079
|
+
// Bandwidth estimation
|
|
1080
|
+
minAutoBitrate: 0
|
|
1068
1081
|
} : void 0
|
|
1069
1082
|
}),
|
|
1070
1083
|
[isLiveStream]
|
|
@@ -4176,8 +4189,6 @@ function DialtribeStreamer({
|
|
|
4176
4189
|
mediaStream,
|
|
4177
4190
|
isVideo: isVideoKey && isVideoEnabled,
|
|
4178
4191
|
encoderServerUrl,
|
|
4179
|
-
disableCanvasRendering: true,
|
|
4180
|
-
// <-- ADD THIS LINE
|
|
4181
4192
|
onBytesUpdate: setBytesSent,
|
|
4182
4193
|
onStateChange: (streamerState) => {
|
|
4183
4194
|
if (streamerState === "live") {
|