remotion 4.1.0-alpha5 → 4.1.0-alpha8

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.
Files changed (40) hide show
  1. package/dist/cjs/Composition.d.ts +21 -6
  2. package/dist/cjs/Composition.js +4 -15
  3. package/dist/cjs/CompositionManager.d.ts +4 -4
  4. package/dist/cjs/Img.d.ts +1 -1
  5. package/dist/cjs/RemotionRoot.js +6 -4
  6. package/dist/cjs/ResolveCompositionConfig.js +17 -2
  7. package/dist/cjs/audio/Audio.d.ts +2 -2
  8. package/dist/cjs/audio/AudioForDevelopment.d.ts +1 -1
  9. package/dist/cjs/audio/AudioForRendering.d.ts +1 -1
  10. package/dist/cjs/config/input-props.d.ts +1 -1
  11. package/dist/cjs/config/input-props.js +2 -1
  12. package/dist/cjs/freeze.js +6 -2
  13. package/dist/cjs/index.d.ts +7 -4
  14. package/dist/cjs/index.js +1 -1
  15. package/dist/cjs/input-props-serialization.d.ts +14 -0
  16. package/dist/cjs/input-props-serialization.js +49 -0
  17. package/dist/cjs/internals.d.ts +67 -58
  18. package/dist/cjs/internals.js +7 -0
  19. package/dist/cjs/loop/index.js +1 -2
  20. package/dist/cjs/resolve-video-config.d.ts +2 -1
  21. package/dist/cjs/resolve-video-config.js +20 -33
  22. package/dist/cjs/series/index.js +1 -2
  23. package/dist/cjs/spring/index.js +1 -1
  24. package/dist/cjs/static-file.js +11 -2
  25. package/dist/cjs/timeline-position-state.d.ts +5 -3
  26. package/dist/cjs/timeline-position-state.js +25 -7
  27. package/dist/cjs/validation/validate-dimensions.d.ts +1 -1
  28. package/dist/cjs/validation/validate-dimensions.js +2 -2
  29. package/dist/cjs/validation/validate-duration-in-frames.d.ts +2 -3
  30. package/dist/cjs/validation/validate-duration-in-frames.js +6 -2
  31. package/dist/cjs/validation/validate-fps.d.ts +1 -1
  32. package/dist/cjs/validation/validate-fps.js +2 -2
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/cjs/video/Video.d.ts +1 -1
  36. package/dist/cjs/video/VideoForDevelopment.d.ts +1 -1
  37. package/dist/cjs/video/VideoForRendering.d.ts +1 -1
  38. package/dist/esm/index.mjs +253 -175
  39. package/dist/esm/version.mjs +1 -1
  40. package/package.json +1 -1
@@ -34,6 +34,7 @@ const delay_render_js_1 = require("./delay-render.js");
34
34
  const EditorProps_js_1 = require("./EditorProps.js");
35
35
  const get_environment_js_1 = require("./get-environment.js");
36
36
  const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
37
+ const input_props_serialization_js_1 = require("./input-props-serialization.js");
37
38
  const interpolate_colors_js_1 = require("./interpolate-colors.js");
38
39
  const is_player_js_1 = require("./is-player.js");
39
40
  const nonce_js_1 = require("./nonce.js");
@@ -47,6 +48,7 @@ const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
47
48
  const SequenceContext_js_1 = require("./SequenceContext.js");
48
49
  const SequenceManager_js_1 = require("./SequenceManager.js");
49
50
  const setup_env_variables_js_1 = require("./setup-env-variables.js");
51
+ const timeline_position_state_js_1 = require("./timeline-position-state.js");
50
52
  const TimelinePosition = __importStar(require("./timeline-position-state.js"));
51
53
  const truthy_js_1 = require("./truthy.js");
52
54
  const use_lazy_component_js_1 = require("./use-lazy-component.js");
@@ -117,4 +119,9 @@ exports.Internals = {
117
119
  REMOTION_STUDIO_CONTAINER_ELEMENT: get_preview_dom_element_js_1.REMOTION_STUDIO_CONTAINER_ELEMENT,
118
120
  AssetManager: AssetManager_js_1.AssetManager,
119
121
  bundleName: 'bundle.js',
122
+ persistCurrentFrame: timeline_position_state_js_1.persistCurrentFrame,
123
+ useTimelineSetFrame: timeline_position_state_js_1.useTimelineSetFrame,
124
+ serializeJSONWithDate: input_props_serialization_js_1.serializeJSONWithDate,
125
+ deserializeJSONWithCustomFields: input_props_serialization_js_1.deserializeJSONWithCustomFields,
126
+ FILE_TOKEN: input_props_serialization_js_1.FILE_TOKEN,
120
127
  };
@@ -14,8 +14,7 @@ const validate_duration_in_frames_js_1 = require("../validation/validate-duratio
14
14
  const Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
15
15
  const currentFrame = (0, use_current_frame_js_1.useCurrentFrame)();
16
16
  const { durationInFrames: compDuration } = (0, use_video_config_js_1.useVideoConfig)();
17
- (0, validate_duration_in_frames_js_1.validateDurationInFrames)({
18
- durationInFrames,
17
+ (0, validate_duration_in_frames_js_1.validateDurationInFrames)(durationInFrames, {
19
18
  component: 'of the <Loop /> component',
20
19
  allowFloats: true,
21
20
  });
@@ -1,8 +1,9 @@
1
1
  import type { AnyZodObject } from 'zod';
2
2
  import type { TCompMetadataWithCalcFunction } from './CompositionManager.js';
3
3
  import type { VideoConfig } from './video-config.js';
4
- export declare const resolveVideoConfig: ({ composition, editorProps: editorPropsOrUndefined, signal, }: {
4
+ export declare const resolveVideoConfig: ({ composition, editorProps: editorPropsOrUndefined, signal, inputProps, }: {
5
5
  composition: TCompMetadataWithCalcFunction<AnyZodObject, Record<string, unknown>>;
6
6
  editorProps: object;
7
7
  signal: AbortSignal;
8
+ inputProps: Record<string, unknown>;
8
9
  }) => VideoConfig | Promise<VideoConfig>;
@@ -1,23 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveVideoConfig = void 0;
4
- const input_props_js_1 = require("./config/input-props.js");
5
- const get_environment_js_1 = require("./get-environment.js");
6
4
  const validate_dimensions_js_1 = require("./validation/validate-dimensions.js");
7
5
  const validate_duration_in_frames_js_1 = require("./validation/validate-duration-in-frames.js");
8
- const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined, signal, }) => {
9
- var _a, _b, _c, _d, _e, _f, _g, _h;
6
+ const validate_fps_js_1 = require("./validation/validate-fps.js");
7
+ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined, signal, inputProps, }) => {
8
+ var _a, _b, _c, _d, _e, _f, _g;
10
9
  const calculatedProm = composition.calculateMetadata
11
10
  ? composition.calculateMetadata({
12
11
  defaultProps: (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {},
13
12
  props: {
14
13
  ...((_b = composition.defaultProps) !== null && _b !== void 0 ? _b : {}),
15
14
  ...(editorPropsOrUndefined !== null && editorPropsOrUndefined !== void 0 ? editorPropsOrUndefined : {}),
16
- ...(typeof window === 'undefined' ||
17
- (0, get_environment_js_1.getRemotionEnvironment)() === 'player-development' ||
18
- (0, get_environment_js_1.getRemotionEnvironment)() === 'player-production'
19
- ? {}
20
- : (_c = (0, input_props_js_1.getInputProps)()) !== null && _c !== void 0 ? _c : {}),
15
+ ...inputProps,
21
16
  },
22
17
  abortSignal: signal,
23
18
  })
@@ -50,43 +45,35 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
50
45
  return {
51
46
  ...data,
52
47
  id: composition.id,
53
- defaultProps: (_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {},
54
- props: (_e = composition.defaultProps) !== null && _e !== void 0 ? _e : {},
48
+ defaultProps: (_c = composition.defaultProps) !== null && _c !== void 0 ? _c : {},
49
+ props: {
50
+ ...((_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {}),
51
+ ...(inputProps !== null && inputProps !== void 0 ? inputProps : {}),
52
+ },
55
53
  };
56
54
  }
57
55
  return {
58
56
  ...data,
59
57
  id: composition.id,
60
- defaultProps: (_f = composition.defaultProps) !== null && _f !== void 0 ? _f : {},
61
- props: (_h = (_g = calculatedProm.props) !== null && _g !== void 0 ? _g : composition.defaultProps) !== null && _h !== void 0 ? _h : {},
58
+ defaultProps: (_e = composition.defaultProps) !== null && _e !== void 0 ? _e : {},
59
+ props: (_g = (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : composition.defaultProps) !== null && _g !== void 0 ? _g : {},
62
60
  };
63
61
  };
64
62
  exports.resolveVideoConfig = resolveVideoConfig;
65
63
  const validateCalculated = ({ composition, calculated, }) => {
66
64
  var _a, _b, _c, _d, _e, _f, _g, _h;
67
- const potentialErrorLocation = `calculated by calculateMetadata() for the composition "${composition.id}"`;
68
- const width = (_b = (_a = calculated === null || calculated === void 0 ? void 0 : calculated.width) !== null && _a !== void 0 ? _a : composition.width) !== null && _b !== void 0 ? _b : null;
69
- if (!width) {
70
- throw new TypeError('Composition width was neither specified via the `width` prop nor the `calculateMetadata()` function.');
71
- }
72
- (0, validate_dimensions_js_1.validateDimension)(width, 'width', potentialErrorLocation);
73
- const height = (_d = (_c = calculated === null || calculated === void 0 ? void 0 : calculated.height) !== null && _c !== void 0 ? _c : composition.height) !== null && _d !== void 0 ? _d : null;
74
- if (!height) {
75
- throw new TypeError('Composition height was neither specified via the `height` prop nor the `calculateMetadata()` function.');
76
- }
77
- (0, validate_dimensions_js_1.validateDimension)(width, 'height', potentialErrorLocation);
65
+ const calculateMetadataErrorLocation = `calculated by calculateMetadata() for the composition "${composition.id}"`;
66
+ const defaultErrorLocation = `of the "<Composition />" component with the id "${composition.id}"`;
67
+ const width = (_b = (_a = calculated === null || calculated === void 0 ? void 0 : calculated.width) !== null && _a !== void 0 ? _a : composition.width) !== null && _b !== void 0 ? _b : undefined;
68
+ (0, validate_dimensions_js_1.validateDimension)(width, 'width', (calculated === null || calculated === void 0 ? void 0 : calculated.width) ? calculateMetadataErrorLocation : defaultErrorLocation);
69
+ const height = (_d = (_c = calculated === null || calculated === void 0 ? void 0 : calculated.height) !== null && _c !== void 0 ? _c : composition.height) !== null && _d !== void 0 ? _d : undefined;
70
+ (0, validate_dimensions_js_1.validateDimension)(height, 'height', (calculated === null || calculated === void 0 ? void 0 : calculated.height) ? calculateMetadataErrorLocation : defaultErrorLocation);
78
71
  const fps = (_f = (_e = calculated === null || calculated === void 0 ? void 0 : calculated.fps) !== null && _e !== void 0 ? _e : composition.fps) !== null && _f !== void 0 ? _f : null;
79
- if (!fps) {
80
- throw new TypeError('Composition fps was neither specified via the `fps` prop nor the `calculateMetadata()` function.');
81
- }
72
+ (0, validate_fps_js_1.validateFps)(fps, (calculated === null || calculated === void 0 ? void 0 : calculated.fps) ? calculateMetadataErrorLocation : defaultErrorLocation, false);
82
73
  const durationInFrames = (_h = (_g = calculated === null || calculated === void 0 ? void 0 : calculated.durationInFrames) !== null && _g !== void 0 ? _g : composition.durationInFrames) !== null && _h !== void 0 ? _h : null;
83
- if (!durationInFrames) {
84
- throw new TypeError('Composition durationInFrames was neither specified via the `durationInFrames` prop nor the `calculateMetadata()` function.');
85
- }
86
- (0, validate_duration_in_frames_js_1.validateDurationInFrames)({
87
- durationInFrames,
88
- component: potentialErrorLocation,
74
+ (0, validate_duration_in_frames_js_1.validateDurationInFrames)(durationInFrames, {
89
75
  allowFloats: false,
76
+ component: `of the "<Composition />" component with the id "${composition.id}"`,
90
77
  });
91
78
  return { width, height, fps, durationInFrames };
92
79
  };
@@ -41,8 +41,7 @@ const Series = ({ children }) => {
41
41
  const { durationInFrames, children: _children, from, ...passedProps } = castedChild.props; // `from` is not accepted and must be filtered out if used in JS
42
42
  if (i !== flattenedChildren.length - 1 ||
43
43
  durationInFramesProp !== Infinity) {
44
- (0, validate_duration_in_frames_js_1.validateDurationInFrames)({
45
- durationInFrames: durationInFramesProp,
44
+ (0, validate_duration_in_frames_js_1.validateDurationInFrames)(durationInFramesProp, {
46
45
  component: `of a <Series.Sequence /> component`,
47
46
  allowFloats: true,
48
47
  });
@@ -52,7 +52,7 @@ function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durati
52
52
  };
53
53
  const frame = (reverse
54
54
  ? (passedDurationInFrames !== null && passedDurationInFrames !== void 0 ? passedDurationInFrames : naturalDurationGetter.get()) - passedFrame
55
- : passedFrame) - delay;
55
+ : passedFrame) - (reverse ? -delay : delay);
56
56
  const spr = (0, spring_utils_js_1.springCalculation)({
57
57
  fps,
58
58
  frame: passedDurationInFrames === undefined
@@ -49,6 +49,14 @@ const inner = (path) => {
49
49
  }
50
50
  return `/${trimLeadingSlash(path)}`;
51
51
  };
52
+ const encodeBySplitting = (path) => {
53
+ const splitBySlash = path.split('/');
54
+ const encodedArray = splitBySlash.map((element) => {
55
+ return encodeURIComponent(element);
56
+ });
57
+ const merged = encodedArray.join('/');
58
+ return merged;
59
+ };
52
60
  /**
53
61
  * @description Reference a file from the public/ folder. If the file does not appear in the autocomplete, type the path manually.
54
62
  * @see [Documentation](https://www.remotion.dev/docs/staticfile)
@@ -76,9 +84,10 @@ const staticFile = (path) => {
76
84
  }
77
85
  const includesHex = (0, exports.includesHexOfUnsafeChar)(path);
78
86
  if (includesHex.containsHex) {
79
- warnOnce(`WARNING: You seem to pass an already encoded path (path contains ${includesHex.hexCode}). The encoding gets automatically handled by staticFile() `);
87
+ warnOnce(`WARNING: You seem to pass an already encoded path (path contains ${includesHex.hexCode}). Since Remotion 4.0, the encoding is done by staticFile() itself. You may want to remove a encodeURIComponent() wrapping.`);
80
88
  }
81
- const preparsed = inner(encodeURIComponent(path));
89
+ const preprocessed = encodeBySplitting(path);
90
+ const preparsed = inner(preprocessed);
82
91
  if (!preparsed.startsWith('/')) {
83
92
  return `/${preparsed}`;
84
93
  }
@@ -4,7 +4,7 @@ export type PlayableMediaTag = {
4
4
  id: string;
5
5
  };
6
6
  export type TimelineContextValue = {
7
- frame: number;
7
+ frame: Record<string, number>;
8
8
  playing: boolean;
9
9
  rootId: string;
10
10
  playbackRate: number;
@@ -13,13 +13,15 @@ export type TimelineContextValue = {
13
13
  audioAndVideoTags: MutableRefObject<PlayableMediaTag[]>;
14
14
  };
15
15
  export type SetTimelineContextValue = {
16
- setFrame: (u: React.SetStateAction<number>) => void;
16
+ setFrame: (u: React.SetStateAction<Record<string, number>>) => void;
17
17
  setPlaying: (u: React.SetStateAction<boolean>) => void;
18
18
  };
19
19
  export declare const TimelineContext: import("react").Context<TimelineContextValue>;
20
20
  export declare const SetTimelineContext: import("react").Context<SetTimelineContextValue>;
21
+ export declare const persistCurrentFrame: (frame: number, composition: string) => void;
22
+ export declare const getFrameForComposition: (composition: string) => number;
21
23
  export declare const useTimelinePosition: () => number;
22
- export declare const useTimelineSetFrame: () => (u: React.SetStateAction<number>) => void;
24
+ export declare const useTimelineSetFrame: () => (u: React.SetStateAction<Record<string, number>>) => void;
23
25
  type PlayingReturnType = readonly [
24
26
  boolean,
25
27
  (u: React.SetStateAction<boolean>) => void,
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usePlayingState = exports.useTimelineSetFrame = exports.useTimelinePosition = exports.SetTimelineContext = exports.TimelineContext = void 0;
3
+ exports.usePlayingState = exports.useTimelineSetFrame = exports.useTimelinePosition = exports.getFrameForComposition = exports.persistCurrentFrame = exports.SetTimelineContext = exports.TimelineContext = void 0;
4
4
  const react_1 = require("react");
5
5
  const use_video_js_1 = require("./use-video.js");
6
6
  exports.TimelineContext = (0, react_1.createContext)({
7
- frame: 0,
7
+ frame: {},
8
8
  playing: false,
9
9
  playbackRate: 1,
10
10
  rootId: '',
@@ -24,16 +24,34 @@ exports.SetTimelineContext = (0, react_1.createContext)({
24
24
  throw new Error('default');
25
25
  },
26
26
  });
27
+ const makeKey = (composition) => {
28
+ return `remotion.time.${composition}`;
29
+ };
30
+ const persistCurrentFrame = (frame, composition) => {
31
+ localStorage.setItem(makeKey(composition), String(frame));
32
+ };
33
+ exports.persistCurrentFrame = persistCurrentFrame;
34
+ const getFrameForComposition = (composition) => {
35
+ var _a, _b;
36
+ const frame = localStorage.getItem(makeKey(composition));
37
+ return frame
38
+ ? Number(frame)
39
+ : (_b = (typeof window === 'undefined' ? 0 : (_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0)) !== null && _b !== void 0 ? _b : 0;
40
+ };
41
+ exports.getFrameForComposition = getFrameForComposition;
27
42
  const useTimelinePosition = () => {
43
+ var _a, _b;
28
44
  const videoConfig = (0, use_video_js_1.useVideo)();
29
45
  const state = (0, react_1.useContext)(exports.TimelineContext);
30
- // A dynamically calculated duration using calculateMetadata()
31
- // may lead to the frame being bigger than the duration.
32
- // If we have the config, we clamp the frame to the duration.
33
46
  if (!videoConfig) {
34
- return state.frame;
47
+ return typeof window === 'undefined'
48
+ ? 0
49
+ : (_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0;
35
50
  }
36
- return Math.min(videoConfig.durationInFrames - 1, state.frame);
51
+ const unclamped = (_b = state.frame[videoConfig.id]) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && window.remotion_isPlayer
52
+ ? 0
53
+ : (0, exports.getFrameForComposition)(videoConfig.id));
54
+ return Math.min(videoConfig.durationInFrames - 1, unclamped);
37
55
  };
38
56
  exports.useTimelinePosition = useTimelinePosition;
39
57
  const useTimelineSetFrame = () => {
@@ -1 +1 @@
1
- export declare const validateDimension: (amount: number, nameOfProp: string, location: string) => void;
1
+ export declare function validateDimension(amount: unknown, nameOfProp: string, location: string): asserts amount is number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateDimension = void 0;
4
- const validateDimension = (amount, nameOfProp, location) => {
4
+ function validateDimension(amount, nameOfProp, location) {
5
5
  if (typeof amount !== 'number') {
6
6
  throw new Error(`The "${nameOfProp}" prop ${location} must be a number, but you passed a value of type ${typeof amount}`);
7
7
  }
@@ -17,5 +17,5 @@ const validateDimension = (amount, nameOfProp, location) => {
17
17
  if (amount <= 0) {
18
18
  throw new TypeError(`The "${nameOfProp}" prop ${location} must be positive, but got ${amount}.`);
19
19
  }
20
- };
20
+ }
21
21
  exports.validateDimension = validateDimension;
@@ -1,5 +1,4 @@
1
- export declare const validateDurationInFrames: ({ allowFloats, component, durationInFrames, }: {
2
- durationInFrames: number;
1
+ export declare function validateDurationInFrames(durationInFrames: unknown, options: {
3
2
  component: string;
4
3
  allowFloats: boolean;
5
- }) => void;
4
+ }): asserts durationInFrames is number;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateDurationInFrames = void 0;
4
- const validateDurationInFrames = ({ allowFloats, component, durationInFrames, }) => {
4
+ function validateDurationInFrames(durationInFrames, options) {
5
+ const { allowFloats, component } = options;
6
+ if (typeof durationInFrames === 'undefined') {
7
+ throw new Error(`The "durationInFrames" prop ${component} is missing.`);
8
+ }
5
9
  if (typeof durationInFrames !== 'number') {
6
10
  throw new Error(`The "durationInFrames" prop ${component} must be a number, but you passed a value of type ${typeof durationInFrames}`);
7
11
  }
@@ -14,5 +18,5 @@ const validateDurationInFrames = ({ allowFloats, component, durationInFrames, })
14
18
  if (!Number.isFinite(durationInFrames)) {
15
19
  throw new TypeError(`The "durationInFrames" prop ${component} must be finite, but got ${durationInFrames}.`);
16
20
  }
17
- };
21
+ }
18
22
  exports.validateDurationInFrames = validateDurationInFrames;
@@ -1 +1 @@
1
- export declare const validateFps: (fps: number, location: string, isGif: boolean) => void;
1
+ export declare function validateFps(fps: unknown, location: string, isGif: boolean): asserts fps is number;
@@ -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, isGif) => {
4
+ function 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
  }
@@ -17,5 +17,5 @@ const validateFps = (fps, location, isGif) => {
17
17
  if (isGif && fps > 50) {
18
18
  throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
19
19
  }
20
- };
20
+ }
21
21
  exports.validateFps = validateFps;
@@ -1 +1 @@
1
- export declare const VERSION = "4.1.0-alpha5";
1
+ export declare const VERSION = "4.1.0-alpha8";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.1.0-alpha5';
5
+ exports.VERSION = '4.1.0-alpha8';
@@ -4,7 +4,7 @@ import type { RemotionMainVideoProps } from './props.js';
4
4
  * @description allows you to include a video file in your Remotion project. It wraps the native HTMLVideoElement.
5
5
  * @see [Documentation](https://www.remotion.dev/docs/video)
6
6
  */
7
- export declare const Video: (props: Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onEnded" | "autoPlay" | "controls"> & {
7
+ export declare const Video: (props: Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "onEnded" | "nonce"> & {
8
8
  volume?: import("../volume-prop.js").VolumeProp | undefined;
9
9
  playbackRate?: number | undefined;
10
10
  acceptableTimeShiftInSeconds?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import React from 'react';
3
- export declare const VideoForDevelopment: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onEnded" | "autoPlay" | "controls"> & {
3
+ export declare const VideoForDevelopment: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "onEnded" | "nonce"> & {
4
4
  volume?: import("../volume-prop.js").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
6
  acceptableTimeShiftInSeconds?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import React from 'react';
3
- export declare const VideoForRendering: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onEnded" | "autoPlay" | "controls"> & {
3
+ export declare const VideoForRendering: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "onEnded" | "nonce"> & {
4
4
  volume?: import("../volume-prop.js").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
6
  acceptableTimeShiftInSeconds?: number | undefined;