remotion 3.1.6 → 3.1.7
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/.turbo/turbo-build.log +5 -5
- package/dist/Composition.js +1 -1
- package/dist/CompositionManager.d.ts +0 -6
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/config.d.ts +188 -0
- package/dist/config.js +21 -0
- package/dist/delay-render.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/internals.d.ts +10 -94
- package/dist/internals.js +3 -95
- package/dist/spring/measure-spring.js +1 -1
- package/dist/validation/validate-fps.d.ts +1 -2
- package/dist/validation/validate-fps.js +3 -3
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[32mremotion:build: [0mcache hit, replaying output [2ma033b7c456e7b58f[0m
|
|
2
|
+
[32mremotion:build: [0m
|
|
3
|
+
[32mremotion:build: [0m> remotion@3.1.6 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[32mremotion:build: [0m> tsc -d
|
|
5
|
+
[32mremotion:build: [0m
|
package/dist/Composition.js
CHANGED
|
@@ -49,7 +49,7 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
|
|
|
49
49
|
(0, validate_dimensions_1.validateDimension)(width, 'width', 'of the <Composition/> component');
|
|
50
50
|
(0, validate_dimensions_1.validateDimension)(height, 'height', 'of the <Composition/> component');
|
|
51
51
|
(0, validate_duration_in_frames_1.validateDurationInFrames)(durationInFrames, 'of the <Composition/> component');
|
|
52
|
-
(0, validate_fps_1.validateFps)(fps, 'as a prop of the <Composition/> component',
|
|
52
|
+
(0, validate_fps_1.validateFps)(fps, 'as a prop of the <Composition/> component', false);
|
|
53
53
|
registerComposition({
|
|
54
54
|
durationInFrames,
|
|
55
55
|
fps,
|
|
@@ -50,12 +50,6 @@ export declare type TAsset = {
|
|
|
50
50
|
mediaFrame: number;
|
|
51
51
|
playbackRate: number;
|
|
52
52
|
};
|
|
53
|
-
export declare type RenderAssetInfo = {
|
|
54
|
-
assets: TAsset[][];
|
|
55
|
-
imageSequenceName: string;
|
|
56
|
-
downloadDir: string;
|
|
57
|
-
firstFrameIndex: number;
|
|
58
|
-
};
|
|
59
53
|
export declare type CompositionManagerContext = {
|
|
60
54
|
compositions: TComposition[];
|
|
61
55
|
registerComposition: <T>(comp: TComposition<T>) => void;
|
package/dist/audio/Audio.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { RemotionMainAudioProps } from './props';
|
|
|
3
3
|
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainAudioProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
6
|
+
} & RemotionMainAudioProps, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
|
|
@@ -4,4 +4,4 @@ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<O
|
|
|
4
4
|
playbackRate?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
shouldPreMountAudioTags: boolean;
|
|
7
|
-
}, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
7
|
+
}, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RemotionAudioProps } from './props';
|
|
3
|
-
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
3
|
+
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key"> & React.RefAttributes<HTMLAudioElement>>;
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The configuration has moved to @remotion/cli.
|
|
3
|
+
* For the moment the type definitions are going to stay here
|
|
4
|
+
*/
|
|
5
|
+
declare type Concurrency = number | null;
|
|
6
|
+
import type { Configuration } from 'webpack';
|
|
7
|
+
declare type WebpackConfiguration = Configuration;
|
|
8
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
9
|
+
declare type BrowserExecutable = string | null;
|
|
10
|
+
declare type FrameRange = number | [number, number];
|
|
11
|
+
declare type FfmpegExecutable = string | null;
|
|
12
|
+
declare type Loop = number | null;
|
|
13
|
+
declare type CodecOrUndefined = 'h264' | 'h265' | 'vp8' | 'vp9' | 'mp3' | 'aac' | 'wav' | 'prores' | 'h264-mkv' | 'gif' | undefined;
|
|
14
|
+
declare type Crf = number | undefined;
|
|
15
|
+
export declare type ConfigType = {
|
|
16
|
+
readonly Preview: {
|
|
17
|
+
/**
|
|
18
|
+
* Change the maximum amount of tracks that are shown in the timeline.
|
|
19
|
+
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
|
|
20
|
+
* @default 15
|
|
21
|
+
*/
|
|
22
|
+
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
23
|
+
};
|
|
24
|
+
readonly Bundling: {
|
|
25
|
+
/**
|
|
26
|
+
* Pass in a function which takes the current Webpack config
|
|
27
|
+
* and return a modified Webpack configuration.
|
|
28
|
+
* Docs: http://remotion.dev/docs/webpack
|
|
29
|
+
*/
|
|
30
|
+
readonly overrideWebpackConfig: (fn: WebpackOverrideFn) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Whether Webpack bundles should be cached to make
|
|
33
|
+
* subsequent renders faster. Default: true
|
|
34
|
+
*/
|
|
35
|
+
readonly setCachingEnabled: (flag: boolean) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Define on which port Remotion should start it's HTTP servers during preview and rendering.
|
|
38
|
+
* By default, Remotion will try to find a free port.
|
|
39
|
+
* If you specify a port, but it's not available, Remotion will throw an error.
|
|
40
|
+
*/
|
|
41
|
+
readonly setPort: (port: number | undefined) => void;
|
|
42
|
+
};
|
|
43
|
+
readonly Log: {
|
|
44
|
+
/**
|
|
45
|
+
* Set the log level.
|
|
46
|
+
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
|
|
47
|
+
* Default value: 'info'
|
|
48
|
+
*
|
|
49
|
+
* Set this to 'verbose' to get browser logs and other IO.
|
|
50
|
+
*/
|
|
51
|
+
readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
|
|
52
|
+
};
|
|
53
|
+
readonly Puppeteer: {
|
|
54
|
+
/**
|
|
55
|
+
* Specify executable path for the browser to use.
|
|
56
|
+
* Default: null, which will make Remotion find or download a version of said browser.
|
|
57
|
+
*/
|
|
58
|
+
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
61
|
+
* Default: `30000`
|
|
62
|
+
*/
|
|
63
|
+
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Setting deciding whether to disable CORS and other Chrome security features.
|
|
66
|
+
* Default: false
|
|
67
|
+
*/
|
|
68
|
+
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
|
|
71
|
+
* Default: false
|
|
72
|
+
*/
|
|
73
|
+
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
74
|
+
/**
|
|
75
|
+
* If false, will open an actual browser during rendering to observe progress.
|
|
76
|
+
* Default: true
|
|
77
|
+
*/
|
|
78
|
+
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
81
|
+
* Default: 'swangle' in Lambda, null elsewhere.
|
|
82
|
+
*/
|
|
83
|
+
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
|
|
84
|
+
};
|
|
85
|
+
readonly Rendering: {
|
|
86
|
+
/**
|
|
87
|
+
* Set a custom location for a .env file.
|
|
88
|
+
* Default: `.env`
|
|
89
|
+
*/
|
|
90
|
+
readonly setDotEnvLocation: (file: string) => void;
|
|
91
|
+
/**
|
|
92
|
+
* Sets how many Puppeteer instances will work on rendering your video in parallel.
|
|
93
|
+
* Default: `null`, meaning half of the threads available on your CPU.
|
|
94
|
+
*/
|
|
95
|
+
readonly setConcurrency: (newConcurrency: Concurrency) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Set the JPEG quality for the frames.
|
|
98
|
+
* Must be between 0 and 100.
|
|
99
|
+
* Must be between 0 and 100.
|
|
100
|
+
* Default: 80
|
|
101
|
+
*/
|
|
102
|
+
readonly setQuality: (q: number | undefined) => void;
|
|
103
|
+
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
104
|
+
* PNG is slower, but supports transparency.
|
|
105
|
+
*/
|
|
106
|
+
readonly setImageFormat: (format: 'png' | 'jpeg' | 'none') => void;
|
|
107
|
+
/**
|
|
108
|
+
* Render only a subset of a video.
|
|
109
|
+
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
110
|
+
* Pass in a single number `20` to only render a single frame as an image.
|
|
111
|
+
* The frame count starts at 0.
|
|
112
|
+
*/
|
|
113
|
+
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Specify local ffmpeg executable.
|
|
116
|
+
* Default: null, which will use ffmpeg available in PATH.
|
|
117
|
+
*/
|
|
118
|
+
readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Specify local ffprobe executable.
|
|
121
|
+
* Default: null, which will use ffprobe available in PATH.
|
|
122
|
+
*/
|
|
123
|
+
readonly setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Scales the output dimensions by a factor.
|
|
126
|
+
* Default: 1.
|
|
127
|
+
*/
|
|
128
|
+
readonly setScale: (newScale: number) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Specify which frames should be picked for rendering a GIF
|
|
131
|
+
* Default: 1, which means every frame
|
|
132
|
+
* https://remotion.dev/docs/render-as-gif
|
|
133
|
+
*/
|
|
134
|
+
readonly setEveryNthFrame: (frame: number) => void;
|
|
135
|
+
/**
|
|
136
|
+
* Specify the number of Loop a GIF should have.
|
|
137
|
+
* Default: null (means GIF will loop infinite)
|
|
138
|
+
*/
|
|
139
|
+
readonly setNumberOfGifLoops: (newLoop: Loop) => void;
|
|
140
|
+
};
|
|
141
|
+
readonly Output: {
|
|
142
|
+
/**
|
|
143
|
+
* Set the output file location string. Default: `out/{composition}.{codec}`
|
|
144
|
+
*/
|
|
145
|
+
readonly setOutputLocation: (newOutputLocation: string) => void;
|
|
146
|
+
/**
|
|
147
|
+
* If the video file already exists, should Remotion overwrite
|
|
148
|
+
* the output? Default: true
|
|
149
|
+
*/
|
|
150
|
+
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
|
|
151
|
+
/**
|
|
152
|
+
* Sets the pixel format in FFMPEG.
|
|
153
|
+
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
|
|
154
|
+
* You can override this using the `--pixel-format` Cli flag.
|
|
155
|
+
*/
|
|
156
|
+
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated Use setCodec() and setImageSequence() instead.
|
|
159
|
+
* Specify what kind of output you, either `mp4` or `png-sequence`.
|
|
160
|
+
*/
|
|
161
|
+
readonly setOutputFormat: (newLegacyFormat: 'mp4' | 'png-sequence') => void;
|
|
162
|
+
/**
|
|
163
|
+
* Specify the codec for stitching the frames into a video.
|
|
164
|
+
* Can be `h264` (default), `h265`, `vp8` or `vp9`
|
|
165
|
+
*/
|
|
166
|
+
readonly setCodec: (newCodec: CodecOrUndefined) => void;
|
|
167
|
+
/**
|
|
168
|
+
* Set the Constant Rate Factor to pass to FFMPEG.
|
|
169
|
+
* Lower values mean better quality, but be aware that the ranges of
|
|
170
|
+
* possible values greatly differs between codecs.
|
|
171
|
+
*/
|
|
172
|
+
readonly setCrf: (newCrf: Crf) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Set to true if don't want a video but an image sequence as the output.
|
|
175
|
+
*/
|
|
176
|
+
readonly setImageSequence: (newImageSequence: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Set the ProRes profile.
|
|
179
|
+
* This method is only valid if the codec has been set to 'prores'.
|
|
180
|
+
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
181
|
+
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
182
|
+
*/
|
|
183
|
+
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
|
|
187
|
+
export declare const Config: ConfigType;
|
|
188
|
+
export declare const enableLegacyRemotionConfig: () => void;
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The configuration has moved to @remotion/cli.
|
|
4
|
+
* For the moment the type definitions are going to stay here
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.enableLegacyRemotionConfig = exports.Config = void 0;
|
|
8
|
+
const conf = {};
|
|
9
|
+
let enabled = false;
|
|
10
|
+
exports.Config = new Proxy(conf, {
|
|
11
|
+
get(target, prop, receiver) {
|
|
12
|
+
if (!enabled) {
|
|
13
|
+
throw new Error('To use the Remotion config file, you need to have @remotion/cli installed.\n- Make sure that all versions of Remotion are the same.\n- Make sure that @remotion/cli is installed.\n- Make sure Config is imported from "@remotion/cli", not "remotion".');
|
|
14
|
+
}
|
|
15
|
+
return Reflect.get(target, prop, receiver);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
const enableLegacyRemotionConfig = () => {
|
|
19
|
+
enabled = true;
|
|
20
|
+
};
|
|
21
|
+
exports.enableLegacyRemotionConfig = enableLegacyRemotionConfig;
|
package/dist/delay-render.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.continueRender = exports.delayRender = exports.DELAY_RENDER_CALLSTACK_TOKEN = void 0;
|
|
4
4
|
const get_environment_1 = require("./get-environment");
|
|
5
|
-
const timeout_1 = require("./timeout");
|
|
6
5
|
const truthy_1 = require("./truthy");
|
|
7
6
|
if (typeof window !== 'undefined') {
|
|
8
7
|
window.ready = false;
|
|
@@ -10,6 +9,7 @@ if (typeof window !== 'undefined') {
|
|
|
10
9
|
let handles = [];
|
|
11
10
|
const timeouts = {};
|
|
12
11
|
exports.DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
12
|
+
const defaultTimeout = 30000;
|
|
13
13
|
/**
|
|
14
14
|
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
15
15
|
* @param label _optional_ A label to identify the call in case it does time out.
|
|
@@ -17,7 +17,7 @@ exports.DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
|
17
17
|
* @link https://www.remotion.dev/docs/delay-render
|
|
18
18
|
*/
|
|
19
19
|
const delayRender = (label) => {
|
|
20
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
21
21
|
if (typeof label !== 'string' && typeof label !== 'undefined') {
|
|
22
22
|
throw new Error('The label parameter of delayRender() must be a string or undefined, got: ' +
|
|
23
23
|
JSON.stringify(label));
|
|
@@ -27,8 +27,8 @@ const delayRender = (label) => {
|
|
|
27
27
|
const called = (_b = (_a = Error().stack) === null || _a === void 0 ? void 0 : _a.replace(/^Error/g, '')) !== null && _b !== void 0 ? _b : '';
|
|
28
28
|
if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
|
|
29
29
|
const timeoutToUse = typeof window === 'undefined'
|
|
30
|
-
?
|
|
31
|
-
: window.remotion_puppeteerTimeout - 2000;
|
|
30
|
+
? defaultTimeout
|
|
31
|
+
: ((_c = window.remotion_puppeteerTimeout) !== null && _c !== void 0 ? _c : defaultTimeout) - 2000;
|
|
32
32
|
timeouts[handle] = setTimeout(() => {
|
|
33
33
|
const message = [
|
|
34
34
|
`A delayRender()`,
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export * from './AbsoluteFill';
|
|
|
35
35
|
export * from './audio';
|
|
36
36
|
export * from './Composition';
|
|
37
37
|
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
38
|
-
export
|
|
38
|
+
export { Config, ConfigType } from './config';
|
|
39
39
|
export { getInputProps } from './config/input-props';
|
|
40
40
|
export * from './delay-render';
|
|
41
41
|
export * from './easing';
|
package/dist/index.js
CHANGED
|
@@ -14,14 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = void 0;
|
|
17
|
+
exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = exports.Config = void 0;
|
|
18
18
|
require("./asset-types");
|
|
19
19
|
const multiple_versions_warning_1 = require("./multiple-versions-warning");
|
|
20
20
|
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
21
21
|
__exportStar(require("./AbsoluteFill"), exports);
|
|
22
22
|
__exportStar(require("./audio"), exports);
|
|
23
23
|
__exportStar(require("./Composition"), exports);
|
|
24
|
-
|
|
24
|
+
var config_1 = require("./config");
|
|
25
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
25
26
|
var input_props_1 = require("./config/input-props");
|
|
26
27
|
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
|
|
27
28
|
__exportStar(require("./delay-render"), exports);
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,111 +1,41 @@
|
|
|
1
|
+
import type { Configuration } from 'webpack';
|
|
1
2
|
import type { CompProps } from './Composition';
|
|
2
|
-
import type { CompositionManagerContext,
|
|
3
|
-
import * as AssetCompression from './compress-assets';
|
|
4
|
-
import * as Logging from './config/log';
|
|
5
|
-
import type { WebpackOverrideFn } from './config/override-webpack';
|
|
6
|
-
import type { ProResProfile } from './config/prores-profile';
|
|
3
|
+
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
7
4
|
import * as CSSUtils from './default-css';
|
|
8
5
|
import type { RemotionEnvironment } from './get-environment';
|
|
9
|
-
import * as perf from './perf';
|
|
10
|
-
import type { SetTimelineInOutContextValue, TimelineInOutContextValue } from './timeline-inout-position-state';
|
|
11
6
|
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
7
|
+
import * as TimelinePosition from './timeline-position-state';
|
|
12
8
|
import { truthy } from './truthy';
|
|
13
|
-
import type { OpenGlRenderer } from './validation/validate-opengl-renderer';
|
|
14
9
|
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
15
10
|
import { useRemotionContexts } from './wrap-remotion-context';
|
|
16
|
-
declare const Timeline:
|
|
17
|
-
TimelineInOutContext: import("react").Context<TimelineInOutContextValue>;
|
|
18
|
-
SetTimelineInOutContext: import("react").Context<SetTimelineInOutContextValue>;
|
|
19
|
-
useTimelineInOutFramePosition: () => TimelineInOutContextValue;
|
|
20
|
-
useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
|
|
21
|
-
TimelineContext: import("react").Context<TimelineContextValue>;
|
|
22
|
-
SetTimelineContext: import("react").Context<SetTimelineContextValue>;
|
|
23
|
-
useTimelinePosition: () => number;
|
|
24
|
-
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
25
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
26
|
-
};
|
|
11
|
+
declare const Timeline: typeof TimelinePosition;
|
|
27
12
|
export declare const Internals: {
|
|
28
|
-
perf: typeof perf;
|
|
29
13
|
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
30
|
-
Timeline:
|
|
31
|
-
TimelineInOutContext: import("react").Context<TimelineInOutContextValue>;
|
|
32
|
-
SetTimelineInOutContext: import("react").Context<SetTimelineInOutContextValue>;
|
|
33
|
-
useTimelineInOutFramePosition: () => TimelineInOutContextValue;
|
|
34
|
-
useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
|
|
35
|
-
TimelineContext: import("react").Context<TimelineContextValue>;
|
|
36
|
-
SetTimelineContext: import("react").Context<SetTimelineContextValue>;
|
|
37
|
-
useTimelinePosition: () => number;
|
|
38
|
-
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
39
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
40
|
-
};
|
|
14
|
+
Timeline: typeof TimelinePosition;
|
|
41
15
|
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
42
16
|
RemotionRoot: import("react").FC<{
|
|
43
17
|
children: import("react").ReactNode;
|
|
44
18
|
}>;
|
|
45
19
|
useVideo: () => TComposition<unknown> | null;
|
|
46
20
|
getRoot: () => import("react").FC<{}> | null;
|
|
47
|
-
getBrowserExecutable: () => import("./config/browser-executable").BrowserExecutable;
|
|
48
|
-
getCustomFfmpegExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
49
|
-
getCustomFfprobeExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
50
|
-
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
51
|
-
getConcurrency: () => number | null;
|
|
52
|
-
getOutputLocation: () => string | null;
|
|
53
|
-
getRange: () => import("./config/frame-range").FrameRange | null;
|
|
54
|
-
getShouldOverwrite: () => boolean;
|
|
55
|
-
getOutputCodecOrUndefined: () => import("./config/codec").CodecOrUndefined;
|
|
56
|
-
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
57
|
-
getQuality: () => number | undefined;
|
|
58
|
-
getAndValidateEveryNthFrame: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
59
|
-
getAndValidateNumberOfGifLoops: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number | null;
|
|
60
|
-
getScale: () => number;
|
|
61
|
-
getShouldOutputImageSequence: (frameRange: import("./config/frame-range").FrameRange | null) => boolean;
|
|
62
|
-
validateSelectedCrfAndCodecCombination: (crf: unknown, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
|
|
63
|
-
getFinalOutputCodec: ({ codec: inputCodec, fileExtension, emitWarning, }: {
|
|
64
|
-
codec: import("./config/codec").CodecOrUndefined;
|
|
65
|
-
fileExtension: string | null;
|
|
66
|
-
emitWarning: boolean;
|
|
67
|
-
}) => "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
68
21
|
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
69
22
|
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
70
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
71
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
72
|
-
FEATURE_FLAG_FIREFOX_SUPPORT: boolean;
|
|
73
|
-
DEFAULT_WEBPACK_CACHE_ENABLED: boolean;
|
|
74
|
-
getBrowser: () => import("./config/browser").Browser | null;
|
|
75
|
-
DEFAULT_BROWSER: import("./config/browser").Browser;
|
|
76
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
77
|
-
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
78
|
-
setFrameRangeFromCli: (newFrameRange: string | number) => void;
|
|
79
|
-
getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
80
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
|
|
81
|
-
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
|
|
82
|
-
validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
|
|
83
|
-
validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
|
|
84
|
-
getWebpackCaching: () => boolean;
|
|
85
23
|
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
|
|
86
24
|
readonly _result: import("react").ComponentType<T>;
|
|
87
25
|
};
|
|
88
26
|
truthy: typeof truthy;
|
|
89
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
90
|
-
Logging: typeof Logging;
|
|
91
27
|
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
92
28
|
useRemotionContexts: typeof useRemotionContexts;
|
|
93
29
|
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
94
30
|
CSSUtils: typeof CSSUtils;
|
|
95
31
|
setupEnvVariables: () => void;
|
|
96
32
|
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
97
|
-
getDotEnvLocation: () => string | null;
|
|
98
|
-
getServerPort: () => number | undefined;
|
|
99
33
|
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
100
34
|
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
101
35
|
validateDurationInFrames: (durationInFrames: number, component: string) => void;
|
|
102
|
-
validateFps: (fps: number, location: string,
|
|
36
|
+
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
103
37
|
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
104
38
|
getRemotionEnvironment: () => RemotionEnvironment;
|
|
105
|
-
getProResProfile: () => "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined;
|
|
106
|
-
setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
107
|
-
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
108
|
-
getMaxTimelineTracks: () => number;
|
|
109
39
|
SharedAudioContext: import("react").Context<{
|
|
110
40
|
registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
|
|
111
41
|
id: number;
|
|
@@ -122,25 +52,8 @@ export declare const Internals: {
|
|
|
122
52
|
numberOfAudioTags: number;
|
|
123
53
|
children: import("react").ReactNode;
|
|
124
54
|
}>;
|
|
125
|
-
validateQuality: (q: number | undefined) => void;
|
|
126
|
-
validateFrame: (frame: number, durationInFrames: number) => void;
|
|
127
|
-
setStillFrame: (frame: number) => void;
|
|
128
|
-
getStillFrame: () => number;
|
|
129
55
|
invalidCompositionErrorMessage: string;
|
|
130
56
|
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
131
|
-
DEFAULT_OVERWRITE: boolean;
|
|
132
|
-
AssetCompression: typeof AssetCompression;
|
|
133
|
-
defaultOverrideFunction: WebpackOverrideFn;
|
|
134
|
-
DEFAULT_PUPPETEER_TIMEOUT: number;
|
|
135
|
-
setupPuppeteerTimeout: () => void;
|
|
136
|
-
setPuppeteerTimeout: (newPuppeteerTimeout: number) => void;
|
|
137
|
-
getCurrentPuppeteerTimeout: () => number;
|
|
138
|
-
getChromiumDisableWebSecurity: () => boolean;
|
|
139
|
-
getIgnoreCertificateErrors: () => boolean;
|
|
140
|
-
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
141
|
-
getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
142
|
-
getChromiumHeadlessMode: () => boolean;
|
|
143
|
-
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
144
57
|
getPreviewDomElement: () => HTMLElement | null;
|
|
145
58
|
compositionsRef: import("react").RefObject<{
|
|
146
59
|
getCompositions: () => TCompMetadata[];
|
|
@@ -154,5 +67,8 @@ export declare const Internals: {
|
|
|
154
67
|
children: import("react").ReactNode;
|
|
155
68
|
}>;
|
|
156
69
|
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
70
|
+
enableLegacyRemotionConfig: () => void;
|
|
157
71
|
};
|
|
158
|
-
|
|
72
|
+
declare type WebpackConfiguration = Configuration;
|
|
73
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
74
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
package/dist/internals.js
CHANGED
|
@@ -24,51 +24,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Internals = void 0;
|
|
27
|
+
const config_1 = require("./config");
|
|
27
28
|
const shared_audio_tags_1 = require("./audio/shared-audio-tags");
|
|
28
29
|
const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
|
|
29
30
|
const CompositionManager_1 = require("./CompositionManager");
|
|
30
|
-
const AssetCompression = __importStar(require("./compress-assets"));
|
|
31
|
-
const browser_1 = require("./config/browser");
|
|
32
|
-
const browser_executable_1 = require("./config/browser-executable");
|
|
33
|
-
const chromium_flags_1 = require("./config/chromium-flags");
|
|
34
|
-
const codec_1 = require("./config/codec");
|
|
35
|
-
const concurrency_1 = require("./config/concurrency");
|
|
36
|
-
const crf_1 = require("./config/crf");
|
|
37
|
-
const env_file_1 = require("./config/env-file");
|
|
38
|
-
const every_nth_frame_1 = require("./config/every-nth-frame");
|
|
39
|
-
const ffmpeg_executable_1 = require("./config/ffmpeg-executable");
|
|
40
|
-
const frame_range_1 = require("./config/frame-range");
|
|
41
|
-
const image_format_1 = require("./config/image-format");
|
|
42
|
-
const image_sequence_1 = require("./config/image-sequence");
|
|
43
|
-
const Logging = __importStar(require("./config/log"));
|
|
44
|
-
const max_timeline_tracks_1 = require("./config/max-timeline-tracks");
|
|
45
|
-
const number_of_gif_loops_1 = require("./config/number-of-gif-loops");
|
|
46
|
-
const output_location_1 = require("./config/output-location");
|
|
47
|
-
const override_webpack_1 = require("./config/override-webpack");
|
|
48
|
-
const overwrite_1 = require("./config/overwrite");
|
|
49
|
-
const pixel_format_1 = require("./config/pixel-format");
|
|
50
|
-
const preview_server_1 = require("./config/preview-server");
|
|
51
|
-
const prores_profile_1 = require("./config/prores-profile");
|
|
52
|
-
const quality_1 = require("./config/quality");
|
|
53
|
-
const scale_1 = require("./config/scale");
|
|
54
|
-
const still_frame_1 = require("./config/still-frame");
|
|
55
|
-
const timeout_1 = require("./config/timeout");
|
|
56
|
-
const webpack_caching_1 = require("./config/webpack-caching");
|
|
57
31
|
const CSSUtils = __importStar(require("./default-css"));
|
|
58
32
|
const delay_render_1 = require("./delay-render");
|
|
59
|
-
const feature_flags_1 = require("./feature-flags");
|
|
60
33
|
const get_environment_1 = require("./get-environment");
|
|
61
34
|
const get_preview_dom_element_1 = require("./get-preview-dom-element");
|
|
62
|
-
const is_audio_codec_1 = require("./is-audio-codec");
|
|
63
|
-
const perf = __importStar(require("./perf"));
|
|
64
35
|
const portal_node_1 = require("./portal-node");
|
|
65
36
|
const register_root_1 = require("./register-root");
|
|
66
37
|
const RemotionRoot_1 = require("./RemotionRoot");
|
|
67
38
|
const Sequence_1 = require("./Sequence");
|
|
68
39
|
const setup_env_variables_1 = require("./setup-env-variables");
|
|
69
|
-
const TimelineInOutPosition = __importStar(require("./timeline-inout-position-state"));
|
|
70
40
|
const TimelinePosition = __importStar(require("./timeline-position-state"));
|
|
71
|
-
const timeout_2 = require("./timeout");
|
|
72
41
|
const truthy_1 = require("./truthy");
|
|
73
42
|
const use_current_frame_1 = require("./use-current-frame");
|
|
74
43
|
const use_lazy_component_1 = require("./use-lazy-component");
|
|
@@ -78,101 +47,39 @@ const validate_composition_id_1 = require("./validation/validate-composition-id"
|
|
|
78
47
|
const validate_dimensions_1 = require("./validation/validate-dimensions");
|
|
79
48
|
const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
|
|
80
49
|
const validate_fps_1 = require("./validation/validate-fps");
|
|
81
|
-
const validate_frame_1 = require("./validation/validate-frame");
|
|
82
|
-
const validate_image_format_1 = require("./validation/validate-image-format");
|
|
83
50
|
const validate_offthreadvideo_image_format_1 = require("./validation/validate-offthreadvideo-image-format");
|
|
84
|
-
const validate_opengl_renderer_1 = require("./validation/validate-opengl-renderer");
|
|
85
|
-
const validate_quality_1 = require("./validation/validate-quality");
|
|
86
51
|
const volume_position_state_1 = require("./volume-position-state");
|
|
87
52
|
const wrap_remotion_context_1 = require("./wrap-remotion-context");
|
|
88
|
-
const Timeline =
|
|
53
|
+
const Timeline = TimelinePosition;
|
|
89
54
|
// Mark them as Internals so use don't assume this is public
|
|
90
55
|
// API and are less likely to use it
|
|
91
56
|
exports.Internals = {
|
|
92
|
-
perf,
|
|
93
57
|
useUnsafeVideoConfig: use_unsafe_video_config_1.useUnsafeVideoConfig,
|
|
94
58
|
Timeline,
|
|
95
59
|
CompositionManager: CompositionManager_1.CompositionManager,
|
|
96
60
|
RemotionRoot: RemotionRoot_1.RemotionRoot,
|
|
97
61
|
useVideo: use_video_1.useVideo,
|
|
98
62
|
getRoot: register_root_1.getRoot,
|
|
99
|
-
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
|
|
100
|
-
getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
|
|
101
|
-
getCustomFfprobeExecutable: ffmpeg_executable_1.getCustomFfprobeExecutable,
|
|
102
|
-
getPixelFormat: pixel_format_1.getPixelFormat,
|
|
103
|
-
getConcurrency: concurrency_1.getConcurrency,
|
|
104
|
-
getOutputLocation: output_location_1.getOutputLocation,
|
|
105
|
-
getRange: frame_range_1.getRange,
|
|
106
|
-
getShouldOverwrite: overwrite_1.getShouldOverwrite,
|
|
107
|
-
getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
|
|
108
|
-
getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
|
|
109
|
-
getQuality: quality_1.getQuality,
|
|
110
|
-
getAndValidateEveryNthFrame: every_nth_frame_1.getAndValidateEveryNthFrame,
|
|
111
|
-
getAndValidateNumberOfGifLoops: number_of_gif_loops_1.getAndValidateNumberOfGifLoops,
|
|
112
|
-
getScale: scale_1.getScale,
|
|
113
|
-
getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
|
|
114
|
-
validateSelectedCrfAndCodecCombination: crf_1.validateSelectedCrfAndCodecCombination,
|
|
115
|
-
getFinalOutputCodec: codec_1.getFinalOutputCodec,
|
|
116
63
|
useMediaVolumeState: volume_position_state_1.useMediaVolumeState,
|
|
117
64
|
useMediaMutedState: volume_position_state_1.useMediaMutedState,
|
|
118
|
-
DEFAULT_CODEC: codec_1.DEFAULT_CODEC,
|
|
119
|
-
DEFAULT_PIXEL_FORMAT: pixel_format_1.DEFAULT_PIXEL_FORMAT,
|
|
120
|
-
FEATURE_FLAG_FIREFOX_SUPPORT: feature_flags_1.FEATURE_FLAG_FIREFOX_SUPPORT,
|
|
121
|
-
DEFAULT_WEBPACK_CACHE_ENABLED: webpack_caching_1.DEFAULT_WEBPACK_CACHE_ENABLED,
|
|
122
|
-
getBrowser: browser_1.getBrowser,
|
|
123
|
-
DEFAULT_BROWSER: browser_1.DEFAULT_BROWSER,
|
|
124
|
-
getDefaultCrfForCodec: crf_1.getDefaultCrfForCodec,
|
|
125
|
-
getActualCrf: crf_1.getActualCrf,
|
|
126
|
-
setFrameRangeFromCli: frame_range_1.setFrameRangeFromCli,
|
|
127
|
-
getUserPreferredImageFormat: image_format_1.getUserPreferredImageFormat,
|
|
128
|
-
validateSelectedPixelFormatAndImageFormatCombination: image_format_1.validateSelectedPixelFormatAndImageFormatCombination,
|
|
129
|
-
validateSelectedPixelFormatAndCodecCombination: pixel_format_1.validateSelectedPixelFormatAndCodecCombination,
|
|
130
|
-
validateFrameRange: frame_range_1.validateFrameRange,
|
|
131
|
-
validateNonNullImageFormat: validate_image_format_1.validateNonNullImageFormat,
|
|
132
|
-
getWebpackCaching: webpack_caching_1.getWebpackCaching,
|
|
133
65
|
useLazyComponent: use_lazy_component_1.useLazyComponent,
|
|
134
66
|
truthy: truthy_1.truthy,
|
|
135
|
-
isAudioCodec: is_audio_codec_1.isAudioCodec,
|
|
136
|
-
Logging,
|
|
137
67
|
SequenceContext: Sequence_1.SequenceContext,
|
|
138
68
|
useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
|
|
139
69
|
RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
|
|
140
70
|
CSSUtils,
|
|
141
71
|
setupEnvVariables: setup_env_variables_1.setupEnvVariables,
|
|
142
72
|
ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
|
|
143
|
-
getDotEnvLocation: env_file_1.getDotEnvLocation,
|
|
144
|
-
getServerPort: preview_server_1.getServerPort,
|
|
145
73
|
MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
|
|
146
74
|
SetMediaVolumeContext: volume_position_state_1.SetMediaVolumeContext,
|
|
147
75
|
validateDurationInFrames: validate_duration_in_frames_1.validateDurationInFrames,
|
|
148
76
|
validateFps: validate_fps_1.validateFps,
|
|
149
77
|
validateDimension: validate_dimensions_1.validateDimension,
|
|
150
78
|
getRemotionEnvironment: get_environment_1.getRemotionEnvironment,
|
|
151
|
-
getProResProfile: prores_profile_1.getProResProfile,
|
|
152
|
-
setProResProfile: prores_profile_1.setProResProfile,
|
|
153
|
-
validateSelectedCodecAndProResCombination: prores_profile_1.validateSelectedCodecAndProResCombination,
|
|
154
|
-
getMaxTimelineTracks: max_timeline_tracks_1.getMaxTimelineTracks,
|
|
155
79
|
SharedAudioContext: shared_audio_tags_1.SharedAudioContext,
|
|
156
80
|
SharedAudioContextProvider: shared_audio_tags_1.SharedAudioContextProvider,
|
|
157
|
-
validateQuality: validate_quality_1.validateQuality,
|
|
158
|
-
validateFrame: validate_frame_1.validateFrame,
|
|
159
|
-
setStillFrame: still_frame_1.setStillFrame,
|
|
160
|
-
getStillFrame: still_frame_1.getStillFrame,
|
|
161
81
|
invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
|
|
162
82
|
isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
|
|
163
|
-
DEFAULT_OVERWRITE: overwrite_1.DEFAULT_OVERWRITE,
|
|
164
|
-
AssetCompression,
|
|
165
|
-
defaultOverrideFunction: override_webpack_1.defaultOverrideFunction,
|
|
166
|
-
DEFAULT_PUPPETEER_TIMEOUT: timeout_2.DEFAULT_PUPPETEER_TIMEOUT,
|
|
167
|
-
setupPuppeteerTimeout: timeout_2.setupPuppeteerTimeout,
|
|
168
|
-
setPuppeteerTimeout: timeout_1.setPuppeteerTimeout,
|
|
169
|
-
getCurrentPuppeteerTimeout: timeout_1.getCurrentPuppeteerTimeout,
|
|
170
|
-
getChromiumDisableWebSecurity: chromium_flags_1.getChromiumDisableWebSecurity,
|
|
171
|
-
getIgnoreCertificateErrors: chromium_flags_1.getIgnoreCertificateErrors,
|
|
172
|
-
validateOpenGlRenderer: validate_opengl_renderer_1.validateOpenGlRenderer,
|
|
173
|
-
getChromiumOpenGlRenderer: chromium_flags_1.getChromiumOpenGlRenderer,
|
|
174
|
-
getChromiumHeadlessMode: chromium_flags_1.getChromiumHeadlessMode,
|
|
175
|
-
DEFAULT_OPENGL_RENDERER: chromium_flags_1.DEFAULT_OPENGL_RENDERER,
|
|
176
83
|
getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
|
|
177
84
|
compositionsRef: CompositionManager_1.compositionsRef,
|
|
178
85
|
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
@@ -182,4 +89,5 @@ exports.Internals = {
|
|
|
182
89
|
validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
|
|
183
90
|
CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
|
|
184
91
|
CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
|
|
92
|
+
enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
|
|
185
93
|
};
|
|
@@ -22,7 +22,7 @@ function measureSpring({ fps, config = {}, threshold = 0.005, from = 0, to = 1,
|
|
|
22
22
|
if (threshold < 0) {
|
|
23
23
|
throw new TypeError('Threshold is below 0');
|
|
24
24
|
}
|
|
25
|
-
(0, validate_fps_1.validateFps)(fps, 'to the measureSpring() function',
|
|
25
|
+
(0, validate_fps_1.validateFps)(fps, 'to the measureSpring() function', false);
|
|
26
26
|
const range = Math.abs(from - to);
|
|
27
27
|
let frame = 0;
|
|
28
28
|
let finishedFrame = 0;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const validateFps: (fps: number, location: string, codec: Codec | null) => void;
|
|
1
|
+
export declare const validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateFps = void 0;
|
|
4
|
-
const validateFps = (fps, location,
|
|
4
|
+
const validateFps = (fps, location, isGif) => {
|
|
5
5
|
if (typeof fps !== 'number') {
|
|
6
6
|
throw new Error(`"fps" must be a number, but you passed a value of type ${typeof fps} ${location}`);
|
|
7
7
|
}
|
|
@@ -14,8 +14,8 @@ const validateFps = (fps, location, codec) => {
|
|
|
14
14
|
if (fps <= 0) {
|
|
15
15
|
throw new TypeError(`"fps" must be positive, but got ${fps} ${location}`);
|
|
16
16
|
}
|
|
17
|
-
if (
|
|
18
|
-
throw new TypeError(`The FPS for a GIF
|
|
17
|
+
if (isGif && fps > 50) {
|
|
18
|
+
throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --skip-n-frames option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
exports.validateFps = validateFps;
|
package/dist/video/Video.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { RemotionMainVideoProps } from './props';
|
|
|
3
3
|
export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
6
|
+
} & RemotionMainVideoProps, "id" | "height" | "width" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
|
|
@@ -4,4 +4,4 @@ export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<O
|
|
|
4
4
|
playbackRate?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
onlyWarnForMediaSeekingError: boolean;
|
|
7
|
-
}, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
7
|
+
}, "id" | "height" | "width" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | "onlyWarnForMediaSeekingError"> & React.RefAttributes<HTMLVideoElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RemotionVideoProps } from './props';
|
|
3
|
-
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
3
|
+
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "599379fef6043a7125d1979766f915580ec1cf77"
|
|
58
58
|
}
|