@remotion/promo-pages 4.0.497 → 4.0.499

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.
@@ -5582,7 +5582,7 @@ var getSingleChildComponent = (children) => {
5582
5582
  }
5583
5583
  return child.type;
5584
5584
  };
5585
- var VERSION = "4.0.497";
5585
+ var VERSION = "4.0.499";
5586
5586
  var checkMultipleRemotionVersions = () => {
5587
5587
  if (typeof globalThis === "undefined") {
5588
5588
  return;
@@ -6420,6 +6420,9 @@ var PremountContext = createContext15({
6420
6420
  premountFramesRemaining: 0
6421
6421
  });
6422
6422
  var ENABLE_V5_BREAKING_CHANGES = false;
6423
+ var resolveV5Default = (value) => {
6424
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6425
+ };
6423
6426
  var usePremounting = ({
6424
6427
  from,
6425
6428
  durationInFrames,
@@ -12895,6 +12898,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12895
12898
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
12896
12899
  const { fps } = useVideoConfig();
12897
12900
  const environment = useRemotionEnvironment();
12901
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
12898
12902
  if (environment.isClientSideRendering) {
12899
12903
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
12900
12904
  }
@@ -12964,7 +12968,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12964
12968
  name,
12965
12969
  children: /* @__PURE__ */ jsx23(Html5Audio, {
12966
12970
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12967
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12971
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12968
12972
  ...otherProps,
12969
12973
  ref
12970
12974
  })
@@ -12992,7 +12996,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12992
12996
  ref,
12993
12997
  onNativeError: onError,
12994
12998
  onDuration,
12995
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12999
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12996
13000
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12997
13001
  showInTimeline: showInTimeline ?? true
12998
13002
  });
@@ -14399,6 +14403,7 @@ var ImgInner = ({
14399
14403
  ...props2
14400
14404
  }) => {
14401
14405
  const refForOutline = useRef24(null);
14406
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14402
14407
  if (effects.length === 0) {
14403
14408
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14404
14409
  ...props2,
@@ -14422,7 +14427,7 @@ var ImgInner = ({
14422
14427
  className,
14423
14428
  style,
14424
14429
  id,
14425
- pauseWhenLoading,
14430
+ pauseWhenLoading: shouldPauseWhenLoading,
14426
14431
  maxRetries,
14427
14432
  delayRenderRetries,
14428
14433
  delayRenderTimeoutInMilliseconds,
@@ -14451,7 +14456,7 @@ var ImgInner = ({
14451
14456
  className,
14452
14457
  style,
14453
14458
  id,
14454
- pauseWhenLoading,
14459
+ pauseWhenLoading: shouldPauseWhenLoading,
14455
14460
  maxRetries,
14456
14461
  delayRenderRetries,
14457
14462
  delayRenderTimeoutInMilliseconds,
@@ -15645,6 +15650,7 @@ var InnerOffthreadVideo = (props2) => {
15645
15650
  ...otherProps
15646
15651
  } = props2;
15647
15652
  const environment = useRemotionEnvironment();
15653
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15648
15654
  if (environment.isClientSideRendering) {
15649
15655
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15650
15656
  }
@@ -15669,7 +15675,7 @@ var InnerOffthreadVideo = (props2) => {
15669
15675
  durationInFrames: trimAfterValue,
15670
15676
  name,
15671
15677
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15672
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15678
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15673
15679
  ...otherProps,
15674
15680
  trimAfter: undefined,
15675
15681
  name: undefined,
@@ -15684,7 +15690,7 @@ var InnerOffthreadVideo = (props2) => {
15684
15690
  validateMediaProps(props2, "Video");
15685
15691
  if (environment.isRendering) {
15686
15692
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15687
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15693
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15688
15694
  ...otherProps,
15689
15695
  trimAfter: undefined,
15690
15696
  name: undefined,
@@ -15709,7 +15715,7 @@ var InnerOffthreadVideo = (props2) => {
15709
15715
  _remotionInternalStack: stack ?? null,
15710
15716
  onDuration,
15711
15717
  onlyWarnForMediaSeekingError: true,
15712
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15718
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15713
15719
  showInTimeline: showInTimeline ?? true,
15714
15720
  onAutoPlayError: onAutoPlayError ?? undefined,
15715
15721
  onVideoFrame: onVideoFrame ?? null,
@@ -15767,7 +15773,7 @@ var OffthreadVideo = ({
15767
15773
  onAutoPlayError: onAutoPlayError ?? null,
15768
15774
  onError,
15769
15775
  onVideoFrame,
15770
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15776
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15771
15777
  playbackRate: playbackRate ?? 1,
15772
15778
  preservePitch,
15773
15779
  toneFrequency: toneFrequency ?? 1,
@@ -16650,6 +16656,7 @@ var VideoForwardingFunction = (props2, ref) => {
16650
16656
  const { loop, ...propsOtherThanLoop } = props2;
16651
16657
  const { fps } = useVideoConfig();
16652
16658
  const environment = useRemotionEnvironment();
16659
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16653
16660
  if (environment.isClientSideRendering) {
16654
16661
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16655
16662
  }
@@ -16708,7 +16715,7 @@ var VideoForwardingFunction = (props2, ref) => {
16708
16715
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16709
16716
  name,
16710
16717
  children: /* @__PURE__ */ jsx39(Html5Video, {
16711
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16718
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16712
16719
  onVideoFrame,
16713
16720
  ...otherProps,
16714
16721
  ref,
@@ -16734,7 +16741,7 @@ var VideoForwardingFunction = (props2, ref) => {
16734
16741
  ...otherProps,
16735
16742
  ref,
16736
16743
  onVideoFrame: onVideoFrame ?? null,
16737
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16744
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16738
16745
  onDuration,
16739
16746
  _remotionInternalStack: stack ?? null,
16740
16747
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
@@ -5579,7 +5579,7 @@ var getSingleChildComponent = (children) => {
5579
5579
  }
5580
5580
  return child.type;
5581
5581
  };
5582
- var VERSION = "4.0.497";
5582
+ var VERSION = "4.0.499";
5583
5583
  var checkMultipleRemotionVersions = () => {
5584
5584
  if (typeof globalThis === "undefined") {
5585
5585
  return;
@@ -6417,6 +6417,9 @@ var PremountContext = createContext15({
6417
6417
  premountFramesRemaining: 0
6418
6418
  });
6419
6419
  var ENABLE_V5_BREAKING_CHANGES = false;
6420
+ var resolveV5Default = (value) => {
6421
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6422
+ };
6420
6423
  var usePremounting = ({
6421
6424
  from,
6422
6425
  durationInFrames,
@@ -12892,6 +12895,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12892
12895
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
12893
12896
  const { fps } = useVideoConfig();
12894
12897
  const environment = useRemotionEnvironment();
12898
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
12895
12899
  if (environment.isClientSideRendering) {
12896
12900
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
12897
12901
  }
@@ -12961,7 +12965,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12961
12965
  name,
12962
12966
  children: /* @__PURE__ */ jsx23(Html5Audio, {
12963
12967
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12964
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12968
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12965
12969
  ...otherProps,
12966
12970
  ref
12967
12971
  })
@@ -12989,7 +12993,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12989
12993
  ref,
12990
12994
  onNativeError: onError,
12991
12995
  onDuration,
12992
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12996
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12993
12997
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12994
12998
  showInTimeline: showInTimeline ?? true
12995
12999
  });
@@ -14396,6 +14400,7 @@ var ImgInner = ({
14396
14400
  ...props2
14397
14401
  }) => {
14398
14402
  const refForOutline = useRef24(null);
14403
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14399
14404
  if (effects.length === 0) {
14400
14405
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14401
14406
  ...props2,
@@ -14419,7 +14424,7 @@ var ImgInner = ({
14419
14424
  className,
14420
14425
  style,
14421
14426
  id,
14422
- pauseWhenLoading,
14427
+ pauseWhenLoading: shouldPauseWhenLoading,
14423
14428
  maxRetries,
14424
14429
  delayRenderRetries,
14425
14430
  delayRenderTimeoutInMilliseconds,
@@ -14448,7 +14453,7 @@ var ImgInner = ({
14448
14453
  className,
14449
14454
  style,
14450
14455
  id,
14451
- pauseWhenLoading,
14456
+ pauseWhenLoading: shouldPauseWhenLoading,
14452
14457
  maxRetries,
14453
14458
  delayRenderRetries,
14454
14459
  delayRenderTimeoutInMilliseconds,
@@ -15642,6 +15647,7 @@ var InnerOffthreadVideo = (props2) => {
15642
15647
  ...otherProps
15643
15648
  } = props2;
15644
15649
  const environment = useRemotionEnvironment();
15650
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15645
15651
  if (environment.isClientSideRendering) {
15646
15652
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15647
15653
  }
@@ -15666,7 +15672,7 @@ var InnerOffthreadVideo = (props2) => {
15666
15672
  durationInFrames: trimAfterValue,
15667
15673
  name,
15668
15674
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15669
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15675
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15670
15676
  ...otherProps,
15671
15677
  trimAfter: undefined,
15672
15678
  name: undefined,
@@ -15681,7 +15687,7 @@ var InnerOffthreadVideo = (props2) => {
15681
15687
  validateMediaProps(props2, "Video");
15682
15688
  if (environment.isRendering) {
15683
15689
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15684
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15690
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15685
15691
  ...otherProps,
15686
15692
  trimAfter: undefined,
15687
15693
  name: undefined,
@@ -15706,7 +15712,7 @@ var InnerOffthreadVideo = (props2) => {
15706
15712
  _remotionInternalStack: stack ?? null,
15707
15713
  onDuration,
15708
15714
  onlyWarnForMediaSeekingError: true,
15709
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15710
15716
  showInTimeline: showInTimeline ?? true,
15711
15717
  onAutoPlayError: onAutoPlayError ?? undefined,
15712
15718
  onVideoFrame: onVideoFrame ?? null,
@@ -15764,7 +15770,7 @@ var OffthreadVideo = ({
15764
15770
  onAutoPlayError: onAutoPlayError ?? null,
15765
15771
  onError,
15766
15772
  onVideoFrame,
15767
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15773
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15768
15774
  playbackRate: playbackRate ?? 1,
15769
15775
  preservePitch,
15770
15776
  toneFrequency: toneFrequency ?? 1,
@@ -16647,6 +16653,7 @@ var VideoForwardingFunction = (props2, ref) => {
16647
16653
  const { loop, ...propsOtherThanLoop } = props2;
16648
16654
  const { fps } = useVideoConfig();
16649
16655
  const environment = useRemotionEnvironment();
16656
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16650
16657
  if (environment.isClientSideRendering) {
16651
16658
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16652
16659
  }
@@ -16705,7 +16712,7 @@ var VideoForwardingFunction = (props2, ref) => {
16705
16712
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16706
16713
  name,
16707
16714
  children: /* @__PURE__ */ jsx39(Html5Video, {
16708
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16709
16716
  onVideoFrame,
16710
16717
  ...otherProps,
16711
16718
  ref,
@@ -16731,7 +16738,7 @@ var VideoForwardingFunction = (props2, ref) => {
16731
16738
  ...otherProps,
16732
16739
  ref,
16733
16740
  onVideoFrame: onVideoFrame ?? null,
16734
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16741
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16735
16742
  onDuration,
16736
16743
  _remotionInternalStack: stack ?? null,
16737
16744
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
@@ -22913,7 +22913,7 @@ var getSingleChildComponent = (children) => {
22913
22913
  }
22914
22914
  return child.type;
22915
22915
  };
22916
- var VERSION = "4.0.497";
22916
+ var VERSION = "4.0.499";
22917
22917
  var checkMultipleRemotionVersions = () => {
22918
22918
  if (typeof globalThis === "undefined") {
22919
22919
  return;
@@ -23751,6 +23751,9 @@ var PremountContext = createContext15({
23751
23751
  premountFramesRemaining: 0
23752
23752
  });
23753
23753
  var ENABLE_V5_BREAKING_CHANGES = false;
23754
+ var resolveV5Default = (value) => {
23755
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
23756
+ };
23754
23757
  var usePremounting = ({
23755
23758
  from,
23756
23759
  durationInFrames,
@@ -30226,6 +30229,7 @@ var AudioRefForwardingFunction = (props, ref) => {
30226
30229
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
30227
30230
  const { fps } = useVideoConfig();
30228
30231
  const environment = useRemotionEnvironment();
30232
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
30229
30233
  if (environment.isClientSideRendering) {
30230
30234
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
30231
30235
  }
@@ -30295,7 +30299,7 @@ var AudioRefForwardingFunction = (props, ref) => {
30295
30299
  name,
30296
30300
  children: /* @__PURE__ */ jsx23(Html5Audio, {
30297
30301
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
30298
- pauseWhenBuffering: pauseWhenBuffering ?? false,
30302
+ pauseWhenBuffering: shouldPauseWhenBuffering,
30299
30303
  ...otherProps,
30300
30304
  ref
30301
30305
  })
@@ -30323,7 +30327,7 @@ var AudioRefForwardingFunction = (props, ref) => {
30323
30327
  ref,
30324
30328
  onNativeError: onError,
30325
30329
  onDuration,
30326
- pauseWhenBuffering: pauseWhenBuffering ?? false,
30330
+ pauseWhenBuffering: shouldPauseWhenBuffering,
30327
30331
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
30328
30332
  showInTimeline: showInTimeline ?? true
30329
30333
  });
@@ -31730,6 +31734,7 @@ var ImgInner = ({
31730
31734
  ...props2
31731
31735
  }) => {
31732
31736
  const refForOutline = useRef24(null);
31737
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
31733
31738
  if (effects.length === 0) {
31734
31739
  return /* @__PURE__ */ jsx28(NativeImgInner, {
31735
31740
  ...props2,
@@ -31753,7 +31758,7 @@ var ImgInner = ({
31753
31758
  className,
31754
31759
  style,
31755
31760
  id,
31756
- pauseWhenLoading,
31761
+ pauseWhenLoading: shouldPauseWhenLoading,
31757
31762
  maxRetries,
31758
31763
  delayRenderRetries,
31759
31764
  delayRenderTimeoutInMilliseconds,
@@ -31782,7 +31787,7 @@ var ImgInner = ({
31782
31787
  className,
31783
31788
  style,
31784
31789
  id,
31785
- pauseWhenLoading,
31790
+ pauseWhenLoading: shouldPauseWhenLoading,
31786
31791
  maxRetries,
31787
31792
  delayRenderRetries,
31788
31793
  delayRenderTimeoutInMilliseconds,
@@ -32976,6 +32981,7 @@ var InnerOffthreadVideo = (props2) => {
32976
32981
  ...otherProps
32977
32982
  } = props2;
32978
32983
  const environment = useRemotionEnvironment();
32984
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
32979
32985
  if (environment.isClientSideRendering) {
32980
32986
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
32981
32987
  }
@@ -33000,7 +33006,7 @@ var InnerOffthreadVideo = (props2) => {
33000
33006
  durationInFrames: trimAfterValue,
33001
33007
  name,
33002
33008
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
33003
- pauseWhenBuffering: pauseWhenBuffering ?? false,
33009
+ pauseWhenBuffering: shouldPauseWhenBuffering,
33004
33010
  ...otherProps,
33005
33011
  trimAfter: undefined,
33006
33012
  name: undefined,
@@ -33015,7 +33021,7 @@ var InnerOffthreadVideo = (props2) => {
33015
33021
  validateMediaProps(props2, "Video");
33016
33022
  if (environment.isRendering) {
33017
33023
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
33018
- pauseWhenBuffering: pauseWhenBuffering ?? false,
33024
+ pauseWhenBuffering: shouldPauseWhenBuffering,
33019
33025
  ...otherProps,
33020
33026
  trimAfter: undefined,
33021
33027
  name: undefined,
@@ -33040,7 +33046,7 @@ var InnerOffthreadVideo = (props2) => {
33040
33046
  _remotionInternalStack: stack ?? null,
33041
33047
  onDuration,
33042
33048
  onlyWarnForMediaSeekingError: true,
33043
- pauseWhenBuffering: pauseWhenBuffering ?? false,
33049
+ pauseWhenBuffering: shouldPauseWhenBuffering,
33044
33050
  showInTimeline: showInTimeline ?? true,
33045
33051
  onAutoPlayError: onAutoPlayError ?? undefined,
33046
33052
  onVideoFrame: onVideoFrame ?? null,
@@ -33098,7 +33104,7 @@ var OffthreadVideo = ({
33098
33104
  onAutoPlayError: onAutoPlayError ?? null,
33099
33105
  onError,
33100
33106
  onVideoFrame,
33101
- pauseWhenBuffering: pauseWhenBuffering ?? true,
33107
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
33102
33108
  playbackRate: playbackRate ?? 1,
33103
33109
  preservePitch,
33104
33110
  toneFrequency: toneFrequency ?? 1,
@@ -33981,6 +33987,7 @@ var VideoForwardingFunction = (props2, ref) => {
33981
33987
  const { loop, ...propsOtherThanLoop } = props2;
33982
33988
  const { fps } = useVideoConfig();
33983
33989
  const environment = useRemotionEnvironment();
33990
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
33984
33991
  if (environment.isClientSideRendering) {
33985
33992
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
33986
33993
  }
@@ -34039,7 +34046,7 @@ var VideoForwardingFunction = (props2, ref) => {
34039
34046
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
34040
34047
  name,
34041
34048
  children: /* @__PURE__ */ jsx39(Html5Video, {
34042
- pauseWhenBuffering: pauseWhenBuffering ?? false,
34049
+ pauseWhenBuffering: shouldPauseWhenBuffering,
34043
34050
  onVideoFrame,
34044
34051
  ...otherProps,
34045
34052
  ref,
@@ -34065,7 +34072,7 @@ var VideoForwardingFunction = (props2, ref) => {
34065
34072
  ...otherProps,
34066
34073
  ref,
34067
34074
  onVideoFrame: onVideoFrame ?? null,
34068
- pauseWhenBuffering: pauseWhenBuffering ?? false,
34075
+ pauseWhenBuffering: shouldPauseWhenBuffering,
34069
34076
  onDuration,
34070
34077
  _remotionInternalStack: stack ?? null,
34071
34078
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
@@ -5579,7 +5579,7 @@ var getSingleChildComponent = (children) => {
5579
5579
  }
5580
5580
  return child.type;
5581
5581
  };
5582
- var VERSION = "4.0.497";
5582
+ var VERSION = "4.0.499";
5583
5583
  var checkMultipleRemotionVersions = () => {
5584
5584
  if (typeof globalThis === "undefined") {
5585
5585
  return;
@@ -6417,6 +6417,9 @@ var PremountContext = createContext15({
6417
6417
  premountFramesRemaining: 0
6418
6418
  });
6419
6419
  var ENABLE_V5_BREAKING_CHANGES = false;
6420
+ var resolveV5Default = (value) => {
6421
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6422
+ };
6420
6423
  var usePremounting = ({
6421
6424
  from,
6422
6425
  durationInFrames,
@@ -12892,6 +12895,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12892
12895
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
12893
12896
  const { fps } = useVideoConfig();
12894
12897
  const environment = useRemotionEnvironment();
12898
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
12895
12899
  if (environment.isClientSideRendering) {
12896
12900
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
12897
12901
  }
@@ -12961,7 +12965,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12961
12965
  name,
12962
12966
  children: /* @__PURE__ */ jsx23(Html5Audio, {
12963
12967
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12964
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12968
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12965
12969
  ...otherProps,
12966
12970
  ref
12967
12971
  })
@@ -12989,7 +12993,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12989
12993
  ref,
12990
12994
  onNativeError: onError,
12991
12995
  onDuration,
12992
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12996
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12993
12997
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12994
12998
  showInTimeline: showInTimeline ?? true
12995
12999
  });
@@ -14396,6 +14400,7 @@ var ImgInner = ({
14396
14400
  ...props2
14397
14401
  }) => {
14398
14402
  const refForOutline = useRef24(null);
14403
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14399
14404
  if (effects.length === 0) {
14400
14405
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14401
14406
  ...props2,
@@ -14419,7 +14424,7 @@ var ImgInner = ({
14419
14424
  className,
14420
14425
  style,
14421
14426
  id,
14422
- pauseWhenLoading,
14427
+ pauseWhenLoading: shouldPauseWhenLoading,
14423
14428
  maxRetries,
14424
14429
  delayRenderRetries,
14425
14430
  delayRenderTimeoutInMilliseconds,
@@ -14448,7 +14453,7 @@ var ImgInner = ({
14448
14453
  className,
14449
14454
  style,
14450
14455
  id,
14451
- pauseWhenLoading,
14456
+ pauseWhenLoading: shouldPauseWhenLoading,
14452
14457
  maxRetries,
14453
14458
  delayRenderRetries,
14454
14459
  delayRenderTimeoutInMilliseconds,
@@ -15642,6 +15647,7 @@ var InnerOffthreadVideo = (props2) => {
15642
15647
  ...otherProps
15643
15648
  } = props2;
15644
15649
  const environment = useRemotionEnvironment();
15650
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15645
15651
  if (environment.isClientSideRendering) {
15646
15652
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15647
15653
  }
@@ -15666,7 +15672,7 @@ var InnerOffthreadVideo = (props2) => {
15666
15672
  durationInFrames: trimAfterValue,
15667
15673
  name,
15668
15674
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15669
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15675
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15670
15676
  ...otherProps,
15671
15677
  trimAfter: undefined,
15672
15678
  name: undefined,
@@ -15681,7 +15687,7 @@ var InnerOffthreadVideo = (props2) => {
15681
15687
  validateMediaProps(props2, "Video");
15682
15688
  if (environment.isRendering) {
15683
15689
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15684
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15690
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15685
15691
  ...otherProps,
15686
15692
  trimAfter: undefined,
15687
15693
  name: undefined,
@@ -15706,7 +15712,7 @@ var InnerOffthreadVideo = (props2) => {
15706
15712
  _remotionInternalStack: stack ?? null,
15707
15713
  onDuration,
15708
15714
  onlyWarnForMediaSeekingError: true,
15709
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15710
15716
  showInTimeline: showInTimeline ?? true,
15711
15717
  onAutoPlayError: onAutoPlayError ?? undefined,
15712
15718
  onVideoFrame: onVideoFrame ?? null,
@@ -15764,7 +15770,7 @@ var OffthreadVideo = ({
15764
15770
  onAutoPlayError: onAutoPlayError ?? null,
15765
15771
  onError,
15766
15772
  onVideoFrame,
15767
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15773
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15768
15774
  playbackRate: playbackRate ?? 1,
15769
15775
  preservePitch,
15770
15776
  toneFrequency: toneFrequency ?? 1,
@@ -16647,6 +16653,7 @@ var VideoForwardingFunction = (props2, ref) => {
16647
16653
  const { loop, ...propsOtherThanLoop } = props2;
16648
16654
  const { fps } = useVideoConfig();
16649
16655
  const environment = useRemotionEnvironment();
16656
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16650
16657
  if (environment.isClientSideRendering) {
16651
16658
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16652
16659
  }
@@ -16705,7 +16712,7 @@ var VideoForwardingFunction = (props2, ref) => {
16705
16712
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16706
16713
  name,
16707
16714
  children: /* @__PURE__ */ jsx39(Html5Video, {
16708
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16709
16716
  onVideoFrame,
16710
16717
  ...otherProps,
16711
16718
  ref,
@@ -16731,7 +16738,7 @@ var VideoForwardingFunction = (props2, ref) => {
16731
16738
  ...otherProps,
16732
16739
  ref,
16733
16740
  onVideoFrame: onVideoFrame ?? null,
16734
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16741
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16735
16742
  onDuration,
16736
16743
  _remotionInternalStack: stack ?? null,
16737
16744
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
package/dist/team.js CHANGED
@@ -5760,7 +5760,7 @@ var getSingleChildComponent = (children) => {
5760
5760
  }
5761
5761
  return child.type;
5762
5762
  };
5763
- var VERSION = "4.0.497";
5763
+ var VERSION = "4.0.499";
5764
5764
  var checkMultipleRemotionVersions = () => {
5765
5765
  if (typeof globalThis === "undefined") {
5766
5766
  return;
@@ -6598,6 +6598,9 @@ var PremountContext = createContext15({
6598
6598
  premountFramesRemaining: 0
6599
6599
  });
6600
6600
  var ENABLE_V5_BREAKING_CHANGES = false;
6601
+ var resolveV5Default = (value) => {
6602
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6603
+ };
6601
6604
  var usePremounting = ({
6602
6605
  from,
6603
6606
  durationInFrames,
@@ -13073,6 +13076,7 @@ var AudioRefForwardingFunction = (props, ref) => {
13073
13076
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
13074
13077
  const { fps } = useVideoConfig();
13075
13078
  const environment = useRemotionEnvironment();
13079
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
13076
13080
  if (environment.isClientSideRendering) {
13077
13081
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
13078
13082
  }
@@ -13142,7 +13146,7 @@ var AudioRefForwardingFunction = (props, ref) => {
13142
13146
  name,
13143
13147
  children: /* @__PURE__ */ jsx23(Html5Audio, {
13144
13148
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
13145
- pauseWhenBuffering: pauseWhenBuffering ?? false,
13149
+ pauseWhenBuffering: shouldPauseWhenBuffering,
13146
13150
  ...otherProps,
13147
13151
  ref
13148
13152
  })
@@ -13170,7 +13174,7 @@ var AudioRefForwardingFunction = (props, ref) => {
13170
13174
  ref,
13171
13175
  onNativeError: onError,
13172
13176
  onDuration,
13173
- pauseWhenBuffering: pauseWhenBuffering ?? false,
13177
+ pauseWhenBuffering: shouldPauseWhenBuffering,
13174
13178
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
13175
13179
  showInTimeline: showInTimeline ?? true
13176
13180
  });
@@ -14577,6 +14581,7 @@ var ImgInner = ({
14577
14581
  ...props2
14578
14582
  }) => {
14579
14583
  const refForOutline = useRef24(null);
14584
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14580
14585
  if (effects.length === 0) {
14581
14586
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14582
14587
  ...props2,
@@ -14600,7 +14605,7 @@ var ImgInner = ({
14600
14605
  className,
14601
14606
  style,
14602
14607
  id,
14603
- pauseWhenLoading,
14608
+ pauseWhenLoading: shouldPauseWhenLoading,
14604
14609
  maxRetries,
14605
14610
  delayRenderRetries,
14606
14611
  delayRenderTimeoutInMilliseconds,
@@ -14629,7 +14634,7 @@ var ImgInner = ({
14629
14634
  className,
14630
14635
  style,
14631
14636
  id,
14632
- pauseWhenLoading,
14637
+ pauseWhenLoading: shouldPauseWhenLoading,
14633
14638
  maxRetries,
14634
14639
  delayRenderRetries,
14635
14640
  delayRenderTimeoutInMilliseconds,
@@ -15823,6 +15828,7 @@ var InnerOffthreadVideo = (props2) => {
15823
15828
  ...otherProps
15824
15829
  } = props2;
15825
15830
  const environment = useRemotionEnvironment();
15831
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15826
15832
  if (environment.isClientSideRendering) {
15827
15833
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15828
15834
  }
@@ -15847,7 +15853,7 @@ var InnerOffthreadVideo = (props2) => {
15847
15853
  durationInFrames: trimAfterValue,
15848
15854
  name,
15849
15855
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15850
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15856
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15851
15857
  ...otherProps,
15852
15858
  trimAfter: undefined,
15853
15859
  name: undefined,
@@ -15862,7 +15868,7 @@ var InnerOffthreadVideo = (props2) => {
15862
15868
  validateMediaProps(props2, "Video");
15863
15869
  if (environment.isRendering) {
15864
15870
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15865
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15871
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15866
15872
  ...otherProps,
15867
15873
  trimAfter: undefined,
15868
15874
  name: undefined,
@@ -15887,7 +15893,7 @@ var InnerOffthreadVideo = (props2) => {
15887
15893
  _remotionInternalStack: stack ?? null,
15888
15894
  onDuration,
15889
15895
  onlyWarnForMediaSeekingError: true,
15890
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15896
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15891
15897
  showInTimeline: showInTimeline ?? true,
15892
15898
  onAutoPlayError: onAutoPlayError ?? undefined,
15893
15899
  onVideoFrame: onVideoFrame ?? null,
@@ -15945,7 +15951,7 @@ var OffthreadVideo = ({
15945
15951
  onAutoPlayError: onAutoPlayError ?? null,
15946
15952
  onError,
15947
15953
  onVideoFrame,
15948
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15954
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15949
15955
  playbackRate: playbackRate ?? 1,
15950
15956
  preservePitch,
15951
15957
  toneFrequency: toneFrequency ?? 1,
@@ -16828,6 +16834,7 @@ var VideoForwardingFunction = (props2, ref) => {
16828
16834
  const { loop, ...propsOtherThanLoop } = props2;
16829
16835
  const { fps } = useVideoConfig();
16830
16836
  const environment = useRemotionEnvironment();
16837
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16831
16838
  if (environment.isClientSideRendering) {
16832
16839
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16833
16840
  }
@@ -16886,7 +16893,7 @@ var VideoForwardingFunction = (props2, ref) => {
16886
16893
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16887
16894
  name,
16888
16895
  children: /* @__PURE__ */ jsx39(Html5Video, {
16889
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16896
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16890
16897
  onVideoFrame,
16891
16898
  ...otherProps,
16892
16899
  ref,
@@ -16912,7 +16919,7 @@ var VideoForwardingFunction = (props2, ref) => {
16912
16919
  ...otherProps,
16913
16920
  ref,
16914
16921
  onVideoFrame: onVideoFrame ?? null,
16915
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16922
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16916
16923
  onDuration,
16917
16924
  _remotionInternalStack: stack ?? null,
16918
16925
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,