remotion 4.0.537 → 4.0.538
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/cjs/AbsoluteFill.d.ts +62 -62
- package/dist/cjs/AbsoluteFill.js +3 -3
- package/dist/cjs/AbsoluteFillElement.d.ts +1 -1
- package/dist/cjs/AbsoluteFillElement.js +36 -3
- package/dist/cjs/CanUseRemotionHooks.js +1 -1
- package/dist/cjs/Composition.js +5 -11
- package/dist/cjs/CompositionErrorBoundary.js +5 -2
- package/dist/cjs/CompositionManager.d.ts +1 -0
- package/dist/cjs/CompositionManagerProvider.d.ts +1 -1
- package/dist/cjs/CompositionManagerProvider.js +1 -1
- package/dist/cjs/CompositionRegistryProvider.d.ts +1 -1
- package/dist/cjs/CompositionRegistryProvider.js +1 -1
- package/dist/cjs/EditorProps.d.ts +2 -2
- package/dist/cjs/EditorProps.js +1 -1
- package/dist/cjs/Folder.js +1 -1
- package/dist/cjs/HtmlInCanvas.d.ts +58 -67
- package/dist/cjs/HtmlInCanvas.js +22 -9
- package/dist/cjs/HtmlInCanvasFallback.d.ts +6 -0
- package/dist/cjs/HtmlInCanvasFallback.js +39 -0
- package/dist/cjs/IFrame.d.ts +2 -2
- package/dist/cjs/IFrame.js +1 -1
- package/dist/cjs/Img.d.ts +62 -62
- package/dist/cjs/Img.js +160 -132
- package/dist/cjs/Interactive.d.ts +147 -145
- package/dist/cjs/Interactive.js +2 -2
- package/dist/cjs/RemotionRoot.js +1 -1
- package/dist/cjs/RenderAssetManager.js +1 -1
- package/dist/cjs/Sequence.js +37 -27
- package/dist/cjs/SequenceActivityBoundary.js +1 -1
- package/dist/cjs/SequenceActivityBudget.js +1 -1
- package/dist/cjs/SequenceActivitySuspensionProvider.js +1 -1
- package/dist/cjs/SequenceManager.d.ts +6 -0
- package/dist/cjs/SequenceManager.js +71 -27
- package/dist/cjs/SequenceRegistryProvider.js +16 -3
- package/dist/cjs/TimelineContext.js +1 -1
- package/dist/cjs/Track.js +2 -2
- package/dist/cjs/animated-image/AnimatedImage.d.ts +69 -69
- package/dist/cjs/animated-image/AnimatedImage.js +6 -6
- package/dist/cjs/animated-image/canvas.d.ts +6 -5
- package/dist/cjs/animated-image/canvas.js +1 -1
- package/dist/cjs/animated-image/create-image-decoder.d.ts +1 -1
- package/dist/cjs/animated-image/decode-image.d.ts +1 -1
- package/dist/cjs/animated-image/get-duration-in-seconds.d.ts +1 -1
- package/dist/cjs/animated-image/index.js +1 -1
- package/dist/cjs/audio/AudioForPreview.js +5 -28
- package/dist/cjs/audio/AudioForRendering.d.ts +5 -20
- package/dist/cjs/audio/AudioForRendering.js +44 -5
- package/dist/cjs/audio/html5-audio.d.ts +36 -36
- package/dist/cjs/audio/html5-audio.js +8 -10
- package/dist/cjs/audio/index.js +1 -1
- package/dist/cjs/audio/shared-audio-tags.js +10 -16
- package/dist/cjs/audio/shared-element-source-node.d.ts +1 -1
- package/dist/cjs/audio/use-audio-context.d.ts +2 -1
- package/dist/cjs/audio/wait-until-actually-resumed.d.ts +2 -1
- package/dist/cjs/buffer-until-first-frame.d.ts +4 -3
- package/dist/cjs/buffering.js +1 -1
- package/dist/cjs/cancel-render.js +3 -0
- package/dist/cjs/canvas-image/CanvasImage.d.ts +71 -71
- package/dist/cjs/canvas-image/CanvasImage.js +27 -24
- package/dist/cjs/canvas-image/index.js +1 -1
- package/dist/cjs/codec.d.ts +1 -1
- package/dist/cjs/committed-metadata.d.ts +4 -2
- package/dist/cjs/composition-registry-fallback.d.ts +4 -2
- package/dist/cjs/composition-registry-fallback.js +12 -10
- package/dist/cjs/create-element-source-proxy.js +46 -6
- package/dist/cjs/default-css.d.ts +1 -1
- package/dist/cjs/delay-render.d.ts +2 -1
- package/dist/cjs/delay-render.js +4 -2
- package/dist/cjs/easing.js +3 -1
- package/dist/cjs/effects/Solid.d.ts +60 -60
- package/dist/cjs/effects/Solid.js +2 -2
- package/dist/cjs/effects/canvas-pool.js +6 -9
- package/dist/cjs/effects/index.js +1 -1
- package/dist/cjs/effects/use-memoized-effects.d.ts +2 -1
- package/dist/cjs/effects/use-memoized-effects.js +23 -12
- package/dist/cjs/freeze.js +2 -2
- package/dist/cjs/get-cross-origin-value.d.ts +1 -1
- package/dist/cjs/get-effective-visual-mode-value.d.ts +2 -2
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.js +32 -32
- package/dist/cjs/interactivity-schema.d.ts +286 -286
- package/dist/cjs/internals.d.ts +408 -595
- package/dist/cjs/internals.js +7 -0
- package/dist/cjs/interpolate-colors.d.ts +1 -1
- package/dist/cjs/interpolate-colors.js +17 -16
- package/dist/cjs/interpolate.d.ts +2 -9
- package/dist/cjs/is-player.js +1 -1
- package/dist/cjs/loading-indicator.js +2 -6
- package/dist/cjs/log-level-context.d.ts +1 -1
- package/dist/cjs/log.d.ts +12 -7
- package/dist/cjs/loop/index.js +1 -1
- package/dist/cjs/media-resource-manager.d.ts +1 -1
- package/dist/cjs/media-tag-current-time-timestamp.d.ts +1 -1
- package/dist/cjs/no-react.d.ts +85 -91
- package/dist/cjs/no-react.js +2 -2
- package/dist/cjs/play-and-handle-not-allowed-error.d.ts +5 -4
- package/dist/cjs/playback-logging.d.ts +2 -1
- package/dist/cjs/playback-pitch-context.d.ts +1 -0
- package/dist/cjs/playback-pitch-context.js +5 -0
- package/dist/cjs/prefetch-state.js +1 -1
- package/dist/cjs/prefetch.d.ts +7 -6
- package/dist/cjs/props-if-has-props.d.ts +2 -1
- package/dist/cjs/prores-profile.d.ts +1 -1
- package/dist/cjs/register-root.d.ts +2 -2
- package/dist/cjs/render-resource-manager.d.ts +1 -1
- package/dist/cjs/render-types.d.ts +2 -2
- package/dist/cjs/resolve-video-config.d.ts +8 -8
- package/dist/cjs/runtime-value-store.d.ts +1 -1
- package/dist/cjs/scale-value.d.ts +1 -1
- package/dist/cjs/seek.d.ts +3 -2
- package/dist/cjs/sequence-activity-context.js +1 -1
- package/dist/cjs/sequence-crop.js +1 -4
- package/dist/cjs/series/flatten-children.d.ts +3 -1
- package/dist/cjs/series/index.js +4 -5
- package/dist/cjs/series/is-inside-series.js +2 -2
- package/dist/cjs/spring/index.d.ts +1 -1
- package/dist/cjs/spring/index.js +1 -1
- package/dist/cjs/spring/measure-spring.d.ts +1 -1
- package/dist/cjs/spring/spring-utils.d.ts +1 -1
- package/dist/cjs/spring/spring-utils.js +11 -5
- package/dist/cjs/timeline-position-state.d.ts +1 -1
- package/dist/cjs/timeline-position-state.js +2 -2
- package/dist/cjs/use-amplification.d.ts +4 -7
- package/dist/cjs/use-current-scale.d.ts +2 -2
- package/dist/cjs/use-delay-render.d.ts +2 -1
- package/dist/cjs/use-lazy-component.d.ts +1 -1
- package/dist/cjs/use-lazy-component.js +15 -5
- package/dist/cjs/use-media-buffering.d.ts +3 -2
- package/dist/cjs/use-media-duration.d.ts +4 -0
- package/dist/cjs/use-media-duration.js +36 -0
- package/dist/cjs/use-media-enabled.d.ts +1 -1
- package/dist/cjs/use-media-enabled.js +1 -1
- package/dist/cjs/use-media-in-timeline.d.ts +1 -1
- package/dist/cjs/use-media-playback.d.ts +3 -3
- package/dist/cjs/use-media-tag.d.ts +2 -2
- package/dist/cjs/use-pixel-density.d.ts +1 -1
- package/dist/cjs/use-premounting.d.ts +1 -1
- package/dist/cjs/use-premounting.js +6 -2
- package/dist/cjs/use-request-video-callback-time.d.ts +3 -3
- package/dist/cjs/use-schema.d.ts +4 -4
- package/dist/cjs/use-video.js +1 -1
- package/dist/cjs/validate-media-props.d.ts +1 -1
- package/dist/cjs/validation/validate-default-props.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/MediaPlaybackError.js +0 -1
- package/dist/cjs/video/OffthreadVideo.js +5 -5
- package/dist/cjs/video/OffthreadVideoForRendering.js +9 -7
- package/dist/cjs/video/VideoForPreview.js +6 -28
- package/dist/cjs/video/VideoForRendering.d.ts +5 -3
- package/dist/cjs/video/VideoForRendering.js +4 -2
- package/dist/cjs/video/duration-state.d.ts +1 -0
- package/dist/cjs/video/duration-state.js +8 -2
- package/dist/cjs/video/emit-video-frame.d.ts +1 -1
- package/dist/cjs/video/html5-video.d.ts +36 -36
- package/dist/cjs/video/html5-video.js +8 -10
- package/dist/cjs/video/index.js +2 -2
- package/dist/cjs/video/seek-until-right.d.ts +3 -2
- package/dist/cjs/warn-about-non-seekable-media.d.ts +1 -1
- package/dist/cjs/with-interactivity-schema.d.ts +1 -1
- package/dist/cjs/with-interactivity-schema.js +3 -8
- package/dist/cjs/wrap-remotion-context.d.ts +4 -4
- package/dist/cjs/wrap-remotion-context.js +2 -2
- package/dist/esm/index.mjs +808 -560
- package/dist/esm/no-react.mjs +27 -22
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -4
|
@@ -5,54 +5,54 @@ import type { RemotionMainAudioProps } from './props.js';
|
|
|
5
5
|
* @see [Documentation](https://remotion.dev/docs/html5-audio)
|
|
6
6
|
*/
|
|
7
7
|
export declare const Html5Audio: React.ForwardRefExoticComponent<Omit<import("./props.js").NativeAudioProps & {
|
|
8
|
-
name?: string
|
|
9
|
-
volume?: import("../volume-prop.js").VolumeProp
|
|
10
|
-
playbackRate?: number
|
|
11
|
-
preservePitch?: boolean
|
|
12
|
-
acceptableTimeShiftInSeconds?: number
|
|
13
|
-
allowAmplificationDuringRender?: boolean
|
|
14
|
-
_remotionInternalNeedsDurationCalculation?: boolean
|
|
15
|
-
_remotionInternalNativeLoopPassed?: boolean
|
|
16
|
-
toneFrequency?: number
|
|
17
|
-
useWebAudioApi?: boolean
|
|
18
|
-
pauseWhenBuffering?: boolean
|
|
19
|
-
showInTimeline?: boolean
|
|
20
|
-
delayRenderTimeoutInMilliseconds?: number
|
|
21
|
-
delayRenderRetries?: number
|
|
22
|
-
loopVolumeCurveBehavior?: import("./use-audio-frame.js").LoopVolumeCurveBehavior
|
|
23
|
-
onError?: (
|
|
24
|
-
audioStreamIndex?: number
|
|
8
|
+
name?: string;
|
|
9
|
+
volume?: import("../volume-prop.js").VolumeProp;
|
|
10
|
+
playbackRate?: number;
|
|
11
|
+
preservePitch?: boolean;
|
|
12
|
+
acceptableTimeShiftInSeconds?: number;
|
|
13
|
+
allowAmplificationDuringRender?: boolean;
|
|
14
|
+
_remotionInternalNeedsDurationCalculation?: boolean;
|
|
15
|
+
_remotionInternalNativeLoopPassed?: boolean;
|
|
16
|
+
toneFrequency?: number;
|
|
17
|
+
useWebAudioApi?: boolean;
|
|
18
|
+
pauseWhenBuffering?: boolean;
|
|
19
|
+
showInTimeline?: boolean;
|
|
20
|
+
delayRenderTimeoutInMilliseconds?: number;
|
|
21
|
+
delayRenderRetries?: number;
|
|
22
|
+
loopVolumeCurveBehavior?: import("./use-audio-frame.js").LoopVolumeCurveBehavior;
|
|
23
|
+
onError?: (err: Error) => void;
|
|
24
|
+
audioStreamIndex?: number;
|
|
25
25
|
} & RemotionMainAudioProps & {
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated For internal use only
|
|
28
28
|
*/
|
|
29
|
-
readonly _remotionInternalStack?: string
|
|
29
|
+
readonly _remotionInternalStack?: string;
|
|
30
30
|
}, "ref"> & React.RefAttributes<HTMLAudioElement>>;
|
|
31
31
|
/**
|
|
32
32
|
* @deprecated This component has been renamed to `Html5Audio`.
|
|
33
33
|
* @see [Documentation](https://remotion.dev/docs/mediabunny/new-video)
|
|
34
34
|
*/
|
|
35
35
|
export declare const Audio: React.ForwardRefExoticComponent<Omit<import("./props.js").NativeAudioProps & {
|
|
36
|
-
name?: string
|
|
37
|
-
volume?: import("../volume-prop.js").VolumeProp
|
|
38
|
-
playbackRate?: number
|
|
39
|
-
preservePitch?: boolean
|
|
40
|
-
acceptableTimeShiftInSeconds?: number
|
|
41
|
-
allowAmplificationDuringRender?: boolean
|
|
42
|
-
_remotionInternalNeedsDurationCalculation?: boolean
|
|
43
|
-
_remotionInternalNativeLoopPassed?: boolean
|
|
44
|
-
toneFrequency?: number
|
|
45
|
-
useWebAudioApi?: boolean
|
|
46
|
-
pauseWhenBuffering?: boolean
|
|
47
|
-
showInTimeline?: boolean
|
|
48
|
-
delayRenderTimeoutInMilliseconds?: number
|
|
49
|
-
delayRenderRetries?: number
|
|
50
|
-
loopVolumeCurveBehavior?: import("./use-audio-frame.js").LoopVolumeCurveBehavior
|
|
51
|
-
onError?: (
|
|
52
|
-
audioStreamIndex?: number
|
|
36
|
+
name?: string;
|
|
37
|
+
volume?: import("../volume-prop.js").VolumeProp;
|
|
38
|
+
playbackRate?: number;
|
|
39
|
+
preservePitch?: boolean;
|
|
40
|
+
acceptableTimeShiftInSeconds?: number;
|
|
41
|
+
allowAmplificationDuringRender?: boolean;
|
|
42
|
+
_remotionInternalNeedsDurationCalculation?: boolean;
|
|
43
|
+
_remotionInternalNativeLoopPassed?: boolean;
|
|
44
|
+
toneFrequency?: number;
|
|
45
|
+
useWebAudioApi?: boolean;
|
|
46
|
+
pauseWhenBuffering?: boolean;
|
|
47
|
+
showInTimeline?: boolean;
|
|
48
|
+
delayRenderTimeoutInMilliseconds?: number;
|
|
49
|
+
delayRenderRetries?: number;
|
|
50
|
+
loopVolumeCurveBehavior?: import("./use-audio-frame.js").LoopVolumeCurveBehavior;
|
|
51
|
+
onError?: (err: Error) => void;
|
|
52
|
+
audioStreamIndex?: number;
|
|
53
53
|
} & RemotionMainAudioProps & {
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated For internal use only
|
|
56
56
|
*/
|
|
57
|
-
readonly _remotionInternalStack?: string
|
|
57
|
+
readonly _remotionInternalStack?: string;
|
|
58
58
|
}, "ref"> & React.RefAttributes<HTMLAudioElement>>;
|
|
@@ -61,9 +61,7 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
61
61
|
console.warn(errMessage);
|
|
62
62
|
}
|
|
63
63
|
}, [loop, onRemotionError, preloadedSrc]);
|
|
64
|
-
const onDuration = (0, react_1.
|
|
65
|
-
setDurations({ type: 'got-duration', durationInSeconds, src });
|
|
66
|
-
}, [setDurations]);
|
|
64
|
+
const onDuration = (0, react_1.useMemo)(() => duration_state_js_1.onMediaDuration.bind(null, setDurations), [setDurations]);
|
|
67
65
|
const durationFetched = (_a = durations[(0, absolute_src_js_1.getAbsoluteSrc)(preloadedSrc)]) !== null && _a !== void 0 ? _a : durations[(0, absolute_src_js_1.getAbsoluteSrc)(props.src)];
|
|
68
66
|
(0, validate_start_from_props_js_1.validateMediaTrimProps)({ startFrom, endAt, trimBefore, trimAfter });
|
|
69
67
|
if (durationInFrames !== undefined) {
|
|
@@ -88,22 +86,22 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
88
86
|
const loopDuration = effectiveTrimAfter !== null && effectiveTrimAfter !== void 0 ? effectiveTrimAfter : (durationFetched === undefined ? undefined : durationFetched * fps);
|
|
89
87
|
if (loop && loopDuration !== undefined) {
|
|
90
88
|
if (!Number.isFinite(loopDuration)) {
|
|
91
|
-
return (jsx_runtime_1.jsx(exports.Html5Audio, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }));
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)(exports.Html5Audio, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }));
|
|
92
90
|
}
|
|
93
|
-
return (jsx_runtime_1.jsx(index_js_1.Loop, { layout: "none", durationInFrames: (0, calculate_media_duration_js_1.calculateMediaDuration)({
|
|
91
|
+
return ((0, jsx_runtime_1.jsx)(index_js_1.Loop, { layout: "none", durationInFrames: (0, calculate_media_duration_js_1.calculateMediaDuration)({
|
|
94
92
|
trimAfter: effectiveTrimAfter,
|
|
95
93
|
mediaDurationInFrames: loopDuration,
|
|
96
94
|
playbackRate: (_b = props.playbackRate) !== null && _b !== void 0 ? _b : 1,
|
|
97
95
|
trimBefore: trimBeforeValue,
|
|
98
|
-
}), children: jsx_runtime_1.jsx(exports.Html5Audio, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }) }));
|
|
96
|
+
}), children: (0, jsx_runtime_1.jsx)(exports.Html5Audio, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }) }));
|
|
99
97
|
}
|
|
100
98
|
if (typeof trimBeforeValue !== 'undefined' ||
|
|
101
99
|
typeof effectiveTrimAfter !== 'undefined') {
|
|
102
|
-
return (jsx_runtime_1.jsx(use_audio_frame_js_1.Html5MediaTrimContext.Provider, { value: trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0, children: jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", from: 0 - (trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0), showInTimeline: false, durationInFrames: effectiveTrimAfter === undefined
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)(use_audio_frame_js_1.Html5MediaTrimContext.Provider, { value: trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0, children: (0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { layout: "none", from: 0 - (trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0), showInTimeline: false, durationInFrames: effectiveTrimAfter === undefined
|
|
103
101
|
? undefined
|
|
104
102
|
: (trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0) +
|
|
105
103
|
(effectiveTrimAfter - (trimBeforeValue !== null && trimBeforeValue !== void 0 ? trimBeforeValue : 0)) /
|
|
106
|
-
((_c = props.playbackRate) !== null && _c !== void 0 ? _c : 1), name: name, children: jsx_runtime_1.jsx(exports.Html5Audio, { _remotionInternalNeedsDurationCalculation: Boolean(loop), pauseWhenBuffering: shouldPauseWhenBuffering, ...otherProps, ref: ref }) }) }));
|
|
104
|
+
((_c = props.playbackRate) !== null && _c !== void 0 ? _c : 1), name: name, children: (0, jsx_runtime_1.jsx)(exports.Html5Audio, { _remotionInternalNeedsDurationCalculation: Boolean(loop), pauseWhenBuffering: shouldPauseWhenBuffering, ...otherProps, ref: ref }) }) }));
|
|
107
105
|
}
|
|
108
106
|
(0, validate_media_props_js_1.validateMediaProps)({
|
|
109
107
|
playbackRate: props.playbackRate,
|
|
@@ -111,9 +109,9 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
111
109
|
volume: props.volume,
|
|
112
110
|
}, 'Html5Audio');
|
|
113
111
|
if (environment.isRendering) {
|
|
114
|
-
return (jsx_runtime_1.jsx(AudioForRendering_js_1.AudioForRendering, { onDuration: onDuration, ...props, ref: ref, onNativeError: onError, _remotionInternalNeedsDurationCalculation: Boolean(loop) }));
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(AudioForRendering_js_1.AudioForRendering, { onDuration: onDuration, ...props, ref: ref, onNativeError: onError, _remotionInternalNeedsDurationCalculation: Boolean(loop) }));
|
|
115
113
|
}
|
|
116
|
-
return (jsx_runtime_1.jsx(AudioForPreview_js_1.AudioForPreview, { _remotionInternalNativeLoopPassed: (_d = props._remotionInternalNativeLoopPassed) !== null && _d !== void 0 ? _d : false, _remotionInternalStack: _remotionInternalStack !== null && _remotionInternalStack !== void 0 ? _remotionInternalStack : null, shouldPreMountAudioTags: audioTagsContext !== null && audioTagsContext.numberOfAudioTags > 0, ...props, ref: ref, onNativeError: onError, onDuration: onDuration, pauseWhenBuffering: shouldPauseWhenBuffering, _remotionInternalNeedsDurationCalculation: Boolean(loop), showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true }));
|
|
114
|
+
return ((0, jsx_runtime_1.jsx)(AudioForPreview_js_1.AudioForPreview, { _remotionInternalNativeLoopPassed: (_d = props._remotionInternalNativeLoopPassed) !== null && _d !== void 0 ? _d : false, _remotionInternalStack: _remotionInternalStack !== null && _remotionInternalStack !== void 0 ? _remotionInternalStack : null, shouldPreMountAudioTags: audioTagsContext !== null && audioTagsContext.numberOfAudioTags > 0, ...props, ref: ref, onNativeError: onError, onDuration: onDuration, pauseWhenBuffering: shouldPauseWhenBuffering, _remotionInternalNeedsDurationCalculation: Boolean(loop), showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true }));
|
|
117
115
|
};
|
|
118
116
|
/**
|
|
119
117
|
* @description With this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.
|
package/dist/cjs/audio/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Html5Audio = exports.Audio = void 0;
|
|
18
|
-
|
|
18
|
+
var html5_audio_js_1 = require("./html5-audio.js");
|
|
19
19
|
Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return html5_audio_js_1.Audio; } });
|
|
20
20
|
Object.defineProperty(exports, "Html5Audio", { enumerable: true, get: function () { return html5_audio_js_1.Html5Audio; } });
|
|
21
21
|
__exportStar(require("./props.js"), exports);
|
|
@@ -319,10 +319,7 @@ const SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled,
|
|
|
319
319
|
return {
|
|
320
320
|
sampleRate,
|
|
321
321
|
audioContext: (_a = ctxAndGain === null || ctxAndGain === void 0 ? void 0 : ctxAndGain.audioContext) !== null && _a !== void 0 ? _a : null,
|
|
322
|
-
getAudioContextState: () => {
|
|
323
|
-
var _a;
|
|
324
|
-
return (_a = ctxAndGain === null || ctxAndGain === void 0 ? void 0 : ctxAndGain.getState()) !== null && _a !== void 0 ? _a : null;
|
|
325
|
-
},
|
|
322
|
+
getAudioContextState: () => { var _a; return (_a = ctxAndGain === null || ctxAndGain === void 0 ? void 0 : ctxAndGain.getState()) !== null && _a !== void 0 ? _a : null; },
|
|
326
323
|
gainNode: (_b = ctxAndGain === null || ctxAndGain === void 0 ? void 0 : ctxAndGain.gainNode) !== null && _b !== void 0 ? _b : null,
|
|
327
324
|
audioSyncAnchor,
|
|
328
325
|
audioSyncAnchorEmitter,
|
|
@@ -347,7 +344,7 @@ const SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled,
|
|
|
347
344
|
unscheduleAudioNode,
|
|
348
345
|
_experimentalKeepAudioContextAlive,
|
|
349
346
|
]);
|
|
350
|
-
return (jsx_runtime_1.jsx(exports.SharedAudioContext.Provider, { value: audioContextValue, children: children }));
|
|
347
|
+
return ((0, jsx_runtime_1.jsx)(exports.SharedAudioContext.Provider, { value: audioContextValue, children: children }));
|
|
351
348
|
};
|
|
352
349
|
exports.SharedAudioContextProvider = SharedAudioContextProvider;
|
|
353
350
|
const SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
@@ -543,16 +540,17 @@ const SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
543
540
|
]);
|
|
544
541
|
const sharedAudioTagElements = (0, react_1.useMemo)(() => {
|
|
545
542
|
return refs.map(({ id, ref }) => {
|
|
546
|
-
return (
|
|
547
|
-
// Without preload="metadata", iOS will seek the time internally
|
|
548
|
-
// but not actually with sound. Adding `preload="metadata"` helps here.
|
|
549
|
-
// https://discord.com/channels/809501355504959528/817306414069710848/1130519583367888906
|
|
550
|
-
jsx_runtime_1.jsx("audio", { ref: ref, preload: "metadata", src: EMPTY_AUDIO }, id));
|
|
543
|
+
return ((0, jsx_runtime_1.jsx)("audio", { ref: ref, preload: "metadata", src: EMPTY_AUDIO }, id));
|
|
551
544
|
});
|
|
552
545
|
}, [refs]);
|
|
553
|
-
return (jsx_runtime_1.jsxs(exports.SharedAudioTagsContext.Provider, { value: audioTagsValue, children: [sharedAudioTagElements, children] }));
|
|
546
|
+
return ((0, jsx_runtime_1.jsxs)(exports.SharedAudioTagsContext.Provider, { value: audioTagsValue, children: [sharedAudioTagElements, children] }));
|
|
554
547
|
};
|
|
555
548
|
exports.SharedAudioTagsContextProvider = SharedAudioTagsContextProvider;
|
|
549
|
+
const unregisterSharedAudio = (tagsContext, id) => {
|
|
550
|
+
if (tagsContext && tagsContext.numberOfAudioTags > 0) {
|
|
551
|
+
tagsContext.unregisterAudio(id);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
556
554
|
const useSharedAudio = ({ aud, audioId, premounting, postmounting, }) => {
|
|
557
555
|
var _a;
|
|
558
556
|
var _b, _c;
|
|
@@ -608,11 +606,7 @@ const useSharedAudio = ({ aud, audioId, premounting, postmounting, }) => {
|
|
|
608
606
|
}
|
|
609
607
|
}, [aud, tagsCtx, elem.id, audioId, premounting, postmounting]);
|
|
610
608
|
effectToUse(() => {
|
|
611
|
-
return (
|
|
612
|
-
if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
|
|
613
|
-
tagsCtx.unregisterAudio(elem.id);
|
|
614
|
-
}
|
|
615
|
-
};
|
|
609
|
+
return unregisterSharedAudio.bind(null, tagsCtx, elem.id);
|
|
616
610
|
}, [tagsCtx, elem.id]);
|
|
617
611
|
}
|
|
618
612
|
return elem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const makeSharedElementSourceNode: ({ audioContext, ref, }: {
|
|
2
2
|
audioContext: AudioContext | null;
|
|
3
|
-
ref:
|
|
3
|
+
ref: React.RefObject<HTMLAudioElement | null>;
|
|
4
4
|
}) => {
|
|
5
5
|
setAudioContext: (newAudioContext: AudioContext | null) => void;
|
|
6
6
|
attemptToConnect: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { LogLevel } from '../log';
|
|
1
2
|
export type RemotionAudioContextState = AudioContextState | 'running-to-suspended' | 'suspended-to-running';
|
|
2
3
|
export declare const useSingletonAudioContext: ({ logLevel, latencyHint, audioEnabled, sampleRate, }: {
|
|
3
|
-
logLevel:
|
|
4
|
+
logLevel: LogLevel;
|
|
4
5
|
latencyHint: AudioContextLatencyCategory;
|
|
5
6
|
audioEnabled: boolean;
|
|
6
7
|
sampleRate: number;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type LogLevel } from '../log.js';
|
|
1
2
|
export type AudioContextResumeResult = 'resumed' | 'cancelled' | 'failed';
|
|
2
|
-
export declare const waitUntilActuallyResumed: (audioContext: AudioContext, logLevel:
|
|
3
|
+
export declare const waitUntilActuallyResumed: (audioContext: AudioContext, logLevel: LogLevel, signal: AbortSignal, isAutoPlayAttempt: boolean) => Promise<AudioContextResumeResult>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { LogLevel } from './log';
|
|
1
2
|
export declare const useBufferUntilFirstFrame: ({ mediaRef, mediaType, onVariableFpsVideoDetected, pauseWhenBuffering, logLevel, mountTime, }: {
|
|
2
|
-
mediaRef:
|
|
3
|
-
mediaType:
|
|
3
|
+
mediaRef: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
4
|
+
mediaType: 'video' | 'audio';
|
|
4
5
|
onVariableFpsVideoDetected: () => void;
|
|
5
6
|
pauseWhenBuffering: boolean;
|
|
6
|
-
logLevel:
|
|
7
|
+
logLevel: LogLevel;
|
|
7
8
|
mountTime: number | null;
|
|
8
9
|
}) => {
|
|
9
10
|
isBuffering: () => boolean;
|
package/dist/cjs/buffering.js
CHANGED
|
@@ -108,6 +108,6 @@ const BufferingProvider = ({ children }) => {
|
|
|
108
108
|
const { logLevel, mountTime } = (0, react_1.useContext)(log_level_context_1.LogLevelContext);
|
|
109
109
|
const { isBuffering, setBuffering } = (0, react_1.useContext)(TimelineContext_js_1.SetTimelineContext);
|
|
110
110
|
const bufferManager = useBufferManager(logLevel !== null && logLevel !== void 0 ? logLevel : 'info', mountTime, setBuffering, isBuffering);
|
|
111
|
-
return (jsx_runtime_1.jsx(exports.BufferingContextReact.Provider, { value: bufferManager, children: children }));
|
|
111
|
+
return ((0, jsx_runtime_1.jsx)(exports.BufferingContextReact.Provider, { value: bufferManager, children: children }));
|
|
112
112
|
};
|
|
113
113
|
exports.BufferingProvider = BufferingProvider;
|
|
@@ -58,6 +58,9 @@ function cancelRenderInternal(scope, err) {
|
|
|
58
58
|
error = Error('Rendering was cancelled');
|
|
59
59
|
}
|
|
60
60
|
if (scope) {
|
|
61
|
+
// Server rendering reads the stack across Puppeteer. Browser rendering can
|
|
62
|
+
// keep the original Error in this realm, including its cause chain.
|
|
63
|
+
scope.remotion_cancelledErrorObject = error;
|
|
61
64
|
scope.remotion_cancelledError = (0, exports.getErrorStackWithMessage)(error);
|
|
62
65
|
}
|
|
63
66
|
throw error;
|
|
@@ -2,52 +2,52 @@ import type { EffectsProp, EffectsOutputSize } from '../effects/effect-types.js'
|
|
|
2
2
|
import type { CanvasImageCanvasProps } from './props.js';
|
|
3
3
|
export declare const canvasImageSchema: {
|
|
4
4
|
readonly 'style.transformOrigin': {
|
|
5
|
-
readonly type:
|
|
5
|
+
readonly type: 'transform-origin';
|
|
6
6
|
readonly step: 1;
|
|
7
|
-
readonly default:
|
|
8
|
-
readonly description:
|
|
7
|
+
readonly default: '50% 50%';
|
|
8
|
+
readonly description: 'Transform origin';
|
|
9
9
|
};
|
|
10
10
|
readonly 'style.translate': {
|
|
11
|
-
readonly type:
|
|
11
|
+
readonly type: 'translate';
|
|
12
12
|
readonly step: 1;
|
|
13
|
-
readonly default:
|
|
14
|
-
readonly description:
|
|
13
|
+
readonly default: '0px 0px';
|
|
14
|
+
readonly description: 'Offset';
|
|
15
15
|
};
|
|
16
16
|
readonly 'style.scale': {
|
|
17
|
-
readonly type:
|
|
17
|
+
readonly type: 'scale';
|
|
18
18
|
readonly max: 100;
|
|
19
19
|
readonly step: 0.01;
|
|
20
20
|
readonly default: 1;
|
|
21
|
-
readonly description:
|
|
22
|
-
readonly defaultKeyframeOutput:
|
|
21
|
+
readonly description: 'Scale';
|
|
22
|
+
readonly defaultKeyframeOutput: 'perceptual-scale';
|
|
23
23
|
};
|
|
24
24
|
readonly 'style.rotate': {
|
|
25
|
-
readonly type:
|
|
25
|
+
readonly type: 'rotation-css';
|
|
26
26
|
readonly step: 1;
|
|
27
|
-
readonly default:
|
|
28
|
-
readonly description:
|
|
27
|
+
readonly default: '0deg';
|
|
28
|
+
readonly description: 'Rotation';
|
|
29
29
|
};
|
|
30
30
|
readonly 'style.opacity': {
|
|
31
|
-
readonly type:
|
|
31
|
+
readonly type: 'number';
|
|
32
32
|
readonly min: 0;
|
|
33
33
|
readonly max: 1;
|
|
34
34
|
readonly step: 0.01;
|
|
35
35
|
readonly default: 1;
|
|
36
|
-
readonly description:
|
|
36
|
+
readonly description: 'Opacity';
|
|
37
37
|
readonly hiddenFromList: false;
|
|
38
38
|
};
|
|
39
39
|
readonly 'style.borderWidth': {
|
|
40
|
-
readonly type:
|
|
40
|
+
readonly type: 'number';
|
|
41
41
|
readonly default: undefined;
|
|
42
42
|
readonly min: 0;
|
|
43
43
|
readonly step: 1;
|
|
44
|
-
readonly description:
|
|
44
|
+
readonly description: 'Border width';
|
|
45
45
|
readonly hiddenFromList: false;
|
|
46
46
|
};
|
|
47
47
|
readonly 'style.borderStyle': {
|
|
48
|
-
readonly type:
|
|
49
|
-
readonly default:
|
|
50
|
-
readonly description:
|
|
48
|
+
readonly type: 'enum';
|
|
49
|
+
readonly default: 'none';
|
|
50
|
+
readonly description: 'Border style';
|
|
51
51
|
readonly variants: {
|
|
52
52
|
readonly none: {};
|
|
53
53
|
readonly hidden: {};
|
|
@@ -62,67 +62,67 @@ export declare const canvasImageSchema: {
|
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
readonly 'style.borderColor': {
|
|
65
|
-
readonly type:
|
|
65
|
+
readonly type: 'color';
|
|
66
66
|
readonly default: undefined;
|
|
67
|
-
readonly description:
|
|
67
|
+
readonly description: 'Border color';
|
|
68
68
|
};
|
|
69
69
|
readonly 'style.borderRadius': {
|
|
70
|
-
readonly type:
|
|
70
|
+
readonly type: 'number';
|
|
71
71
|
readonly default: 0;
|
|
72
72
|
readonly min: 0;
|
|
73
73
|
readonly step: 1;
|
|
74
|
-
readonly description:
|
|
74
|
+
readonly description: 'Border radius';
|
|
75
75
|
readonly hiddenFromList: false;
|
|
76
76
|
readonly keyframable: true;
|
|
77
77
|
};
|
|
78
78
|
readonly 'style.borderTopLeftRadius': {
|
|
79
|
-
readonly type:
|
|
79
|
+
readonly type: 'number';
|
|
80
80
|
readonly default: 0;
|
|
81
81
|
readonly min: 0;
|
|
82
82
|
readonly step: 1;
|
|
83
|
-
readonly description:
|
|
83
|
+
readonly description: 'Top left radius';
|
|
84
84
|
readonly hiddenFromList: false;
|
|
85
85
|
};
|
|
86
86
|
readonly 'style.borderTopRightRadius': {
|
|
87
|
-
readonly type:
|
|
87
|
+
readonly type: 'number';
|
|
88
88
|
readonly default: 0;
|
|
89
89
|
readonly min: 0;
|
|
90
90
|
readonly step: 1;
|
|
91
|
-
readonly description:
|
|
91
|
+
readonly description: 'Top right radius';
|
|
92
92
|
readonly hiddenFromList: false;
|
|
93
93
|
};
|
|
94
94
|
readonly 'style.borderBottomRightRadius': {
|
|
95
|
-
readonly type:
|
|
95
|
+
readonly type: 'number';
|
|
96
96
|
readonly default: 0;
|
|
97
97
|
readonly min: 0;
|
|
98
98
|
readonly step: 1;
|
|
99
|
-
readonly description:
|
|
99
|
+
readonly description: 'Bottom right radius';
|
|
100
100
|
readonly hiddenFromList: false;
|
|
101
101
|
};
|
|
102
102
|
readonly 'style.borderBottomLeftRadius': {
|
|
103
|
-
readonly type:
|
|
103
|
+
readonly type: 'number';
|
|
104
104
|
readonly default: 0;
|
|
105
105
|
readonly min: 0;
|
|
106
106
|
readonly step: 1;
|
|
107
|
-
readonly description:
|
|
107
|
+
readonly description: 'Bottom left radius';
|
|
108
108
|
readonly hiddenFromList: false;
|
|
109
109
|
};
|
|
110
110
|
readonly 'style.backgroundColor': {
|
|
111
|
-
readonly type:
|
|
112
|
-
readonly default:
|
|
113
|
-
readonly description:
|
|
111
|
+
readonly type: 'color';
|
|
112
|
+
readonly default: 'transparent';
|
|
113
|
+
readonly description: 'Color';
|
|
114
114
|
};
|
|
115
115
|
readonly premountFor: {
|
|
116
|
-
readonly type:
|
|
116
|
+
readonly type: 'number';
|
|
117
117
|
readonly default: undefined;
|
|
118
|
-
readonly description:
|
|
118
|
+
readonly description: 'Premount For';
|
|
119
119
|
readonly min: 0;
|
|
120
120
|
readonly step: 1;
|
|
121
121
|
readonly hiddenFromList: false;
|
|
122
122
|
readonly keyframable: false;
|
|
123
123
|
};
|
|
124
124
|
readonly postmountFor: {
|
|
125
|
-
readonly type:
|
|
125
|
+
readonly type: 'number';
|
|
126
126
|
readonly default: 0;
|
|
127
127
|
readonly min: 0;
|
|
128
128
|
readonly step: 1;
|
|
@@ -130,9 +130,9 @@ export declare const canvasImageSchema: {
|
|
|
130
130
|
readonly keyframable: false;
|
|
131
131
|
};
|
|
132
132
|
readonly cropLeft: {
|
|
133
|
-
readonly type:
|
|
133
|
+
readonly type: 'number';
|
|
134
134
|
readonly default: 0;
|
|
135
|
-
readonly description:
|
|
135
|
+
readonly description: 'Crop left';
|
|
136
136
|
readonly min: 0;
|
|
137
137
|
readonly max: 1;
|
|
138
138
|
readonly step: 0.01;
|
|
@@ -140,9 +140,9 @@ export declare const canvasImageSchema: {
|
|
|
140
140
|
readonly keyframable: true;
|
|
141
141
|
};
|
|
142
142
|
readonly cropRight: {
|
|
143
|
-
readonly type:
|
|
143
|
+
readonly type: 'number';
|
|
144
144
|
readonly default: 0;
|
|
145
|
-
readonly description:
|
|
145
|
+
readonly description: 'Crop right';
|
|
146
146
|
readonly min: 0;
|
|
147
147
|
readonly max: 1;
|
|
148
148
|
readonly step: 0.01;
|
|
@@ -150,9 +150,9 @@ export declare const canvasImageSchema: {
|
|
|
150
150
|
readonly keyframable: true;
|
|
151
151
|
};
|
|
152
152
|
readonly cropTop: {
|
|
153
|
-
readonly type:
|
|
153
|
+
readonly type: 'number';
|
|
154
154
|
readonly default: 0;
|
|
155
|
-
readonly description:
|
|
155
|
+
readonly description: 'Crop top';
|
|
156
156
|
readonly min: 0;
|
|
157
157
|
readonly max: 1;
|
|
158
158
|
readonly step: 0.01;
|
|
@@ -160,9 +160,9 @@ export declare const canvasImageSchema: {
|
|
|
160
160
|
readonly keyframable: true;
|
|
161
161
|
};
|
|
162
162
|
readonly cropBottom: {
|
|
163
|
-
readonly type:
|
|
163
|
+
readonly type: 'number';
|
|
164
164
|
readonly default: 0;
|
|
165
|
-
readonly description:
|
|
165
|
+
readonly description: 'Crop bottom';
|
|
166
166
|
readonly min: 0;
|
|
167
167
|
readonly max: 1;
|
|
168
168
|
readonly step: 0.01;
|
|
@@ -170,27 +170,27 @@ export declare const canvasImageSchema: {
|
|
|
170
170
|
readonly keyframable: true;
|
|
171
171
|
};
|
|
172
172
|
readonly durationInFrames: {
|
|
173
|
-
readonly type:
|
|
173
|
+
readonly type: 'number';
|
|
174
174
|
readonly default: undefined;
|
|
175
175
|
readonly min: 1;
|
|
176
176
|
readonly step: 1;
|
|
177
177
|
readonly hiddenFromList: true;
|
|
178
178
|
};
|
|
179
179
|
readonly from: {
|
|
180
|
-
readonly type:
|
|
180
|
+
readonly type: 'number';
|
|
181
181
|
readonly default: 0;
|
|
182
182
|
readonly step: 1;
|
|
183
183
|
readonly hiddenFromList: true;
|
|
184
184
|
};
|
|
185
185
|
readonly trimBefore: {
|
|
186
|
-
readonly type:
|
|
186
|
+
readonly type: 'number';
|
|
187
187
|
readonly default: 0;
|
|
188
188
|
readonly min: 0;
|
|
189
189
|
readonly step: 1;
|
|
190
190
|
readonly hiddenFromList: true;
|
|
191
191
|
};
|
|
192
192
|
readonly freeze: {
|
|
193
|
-
readonly type:
|
|
193
|
+
readonly type: 'number';
|
|
194
194
|
readonly default: null;
|
|
195
195
|
readonly step: 1;
|
|
196
196
|
readonly hiddenFromList: true;
|
|
@@ -199,16 +199,16 @@ export declare const canvasImageSchema: {
|
|
|
199
199
|
readonly name: import("../interactivity-schema.js").HiddenFieldSchema;
|
|
200
200
|
readonly showInTimeline: import("../interactivity-schema.js").HiddenFieldSchema;
|
|
201
201
|
readonly src: {
|
|
202
|
-
readonly type:
|
|
203
|
-
readonly assetType:
|
|
202
|
+
readonly type: 'asset';
|
|
203
|
+
readonly assetType: 'image';
|
|
204
204
|
readonly default: undefined;
|
|
205
|
-
readonly description:
|
|
205
|
+
readonly description: 'Source';
|
|
206
206
|
readonly keyframable: false;
|
|
207
207
|
};
|
|
208
208
|
readonly fit: {
|
|
209
|
-
readonly type:
|
|
210
|
-
readonly default:
|
|
211
|
-
readonly description:
|
|
209
|
+
readonly type: 'enum';
|
|
210
|
+
readonly default: 'fill';
|
|
211
|
+
readonly description: 'Fit';
|
|
212
212
|
readonly variants: {
|
|
213
213
|
readonly fill: {};
|
|
214
214
|
readonly contain: {};
|
|
@@ -218,20 +218,20 @@ export declare const canvasImageSchema: {
|
|
|
218
218
|
};
|
|
219
219
|
export declare const CanvasImage: import("react").ComponentType<Omit<import("../Interactive.js").InteractiveBaseProps, "playbackRate"> & import("../Interactive.js").InteractiveCropProps & import("../Interactive.js").InteractivePremountProps & CanvasImageCanvasProps & {
|
|
220
220
|
readonly src: string;
|
|
221
|
-
readonly crossOrigin?:
|
|
222
|
-
readonly width?: number
|
|
223
|
-
readonly height?: number
|
|
224
|
-
readonly fit?: import("../calculate-image-fit.js").ImageFit
|
|
225
|
-
readonly effects?: EffectsProp
|
|
226
|
-
readonly effectsOutputSize?: EffectsOutputSize
|
|
227
|
-
readonly className?: string
|
|
228
|
-
readonly style?:
|
|
229
|
-
readonly id?: string
|
|
230
|
-
readonly onError?: (
|
|
231
|
-
readonly pauseWhenLoading?: boolean
|
|
232
|
-
readonly maxRetries?: number
|
|
233
|
-
readonly delayRenderRetries?: number
|
|
234
|
-
readonly delayRenderTimeoutInMilliseconds?: number
|
|
235
|
-
readonly _remotionInternalDocumentationLink?: string
|
|
236
|
-
readonly _remotionInternalCropComponentName?: string
|
|
221
|
+
readonly crossOrigin?: React.ImgHTMLAttributes<HTMLImageElement>['crossOrigin'];
|
|
222
|
+
readonly width?: number;
|
|
223
|
+
readonly height?: number;
|
|
224
|
+
readonly fit?: import("../calculate-image-fit.js").ImageFit;
|
|
225
|
+
readonly effects?: EffectsProp;
|
|
226
|
+
readonly effectsOutputSize?: EffectsOutputSize;
|
|
227
|
+
readonly className?: string;
|
|
228
|
+
readonly style?: React.CSSProperties;
|
|
229
|
+
readonly id?: string;
|
|
230
|
+
readonly onError?: (error: Error) => void;
|
|
231
|
+
readonly pauseWhenLoading?: boolean;
|
|
232
|
+
readonly maxRetries?: number;
|
|
233
|
+
readonly delayRenderRetries?: number;
|
|
234
|
+
readonly delayRenderTimeoutInMilliseconds?: number;
|
|
235
|
+
readonly _remotionInternalDocumentationLink?: string;
|
|
236
|
+
readonly _remotionInternalCropComponentName?: string;
|
|
237
237
|
} & import("react").RefAttributes<HTMLCanvasElement>>;
|