@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.
@@ -2090,8 +2090,6 @@ function DialtribeStreamer({
2090
2090
  mediaStream,
2091
2091
  isVideo: isVideoKey && isVideoEnabled,
2092
2092
  encoderServerUrl,
2093
- disableCanvasRendering: true,
2094
- // <-- ADD THIS LINE
2095
2093
  onBytesUpdate: setBytesSent,
2096
2094
  onStateChange: (streamerState) => {
2097
2095
  if (streamerState === "live") {
@@ -2948,10 +2946,23 @@ function DialtribePlayer({
2948
2946
  const playerConfig = React2.useMemo(
2949
2947
  () => ({
2950
2948
  hls: isLiveStream ? {
2951
- maxLoadingDelay: 10,
2952
- minAutoBitrate: 0,
2949
+ // Performance
2950
+ enableWorker: true,
2953
2951
  lowLatencyMode: true,
2954
- enableWorker: true
2952
+ // Live edge synchronization - start close to live, not at beginning
2953
+ liveSyncDurationCount: 3,
2954
+ // Start 3 segments behind live edge
2955
+ liveMaxLatencyDurationCount: 10,
2956
+ // Seek to live if >10 segments behind
2957
+ maxLiveSyncPlaybackRate: 1.5,
2958
+ // Speed up to catch up to live edge
2959
+ // Buffer settings
2960
+ maxLoadingDelay: 4,
2961
+ maxBufferLength: 30,
2962
+ maxBufferSize: 60 * 1e3 * 1e3,
2963
+ // 60MB
2964
+ // Bandwidth estimation
2965
+ minAutoBitrate: 0
2955
2966
  } : void 0
2956
2967
  }),
2957
2968
  [isLiveStream]