@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.
@@ -2083,8 +2083,6 @@ function DialtribeStreamer({
2083
2083
  mediaStream,
2084
2084
  isVideo: isVideoKey && isVideoEnabled,
2085
2085
  encoderServerUrl,
2086
- disableCanvasRendering: true,
2087
- // <-- ADD THIS LINE
2088
2086
  onBytesUpdate: setBytesSent,
2089
2087
  onStateChange: (streamerState) => {
2090
2088
  if (streamerState === "live") {
@@ -2941,10 +2939,23 @@ function DialtribePlayer({
2941
2939
  const playerConfig = useMemo(
2942
2940
  () => ({
2943
2941
  hls: isLiveStream ? {
2944
- maxLoadingDelay: 10,
2945
- minAutoBitrate: 0,
2942
+ // Performance
2943
+ enableWorker: true,
2946
2944
  lowLatencyMode: true,
2947
- enableWorker: true
2945
+ // Live edge synchronization - start close to live, not at beginning
2946
+ liveSyncDurationCount: 3,
2947
+ // Start 3 segments behind live edge
2948
+ liveMaxLatencyDurationCount: 10,
2949
+ // Seek to live if >10 segments behind
2950
+ maxLiveSyncPlaybackRate: 1.5,
2951
+ // Speed up to catch up to live edge
2952
+ // Buffer settings
2953
+ maxLoadingDelay: 4,
2954
+ maxBufferLength: 30,
2955
+ maxBufferSize: 60 * 1e3 * 1e3,
2956
+ // 60MB
2957
+ // Bandwidth estimation
2958
+ minAutoBitrate: 0
2948
2959
  } : void 0
2949
2960
  }),
2950
2961
  [isLiveStream]