remotion 3.0.0-lambda.25 → 3.0.0-lambda.250
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/coverage/coverage-summary.json +23 -19
- package/dist/Composition.d.ts +1 -1
- package/dist/Composition.d.ts.map +1 -1
- package/dist/Composition.js +4 -3
- package/dist/Composition.js.map +1 -1
- package/dist/CompositionManager.d.ts +5 -3
- package/dist/CompositionManager.d.ts.map +1 -1
- package/dist/CompositionManager.js.map +1 -1
- package/dist/RemotionRoot.d.ts.map +1 -1
- package/dist/RemotionRoot.js +8 -1
- package/dist/RemotionRoot.js.map +1 -1
- package/dist/Still.d.ts +0 -1
- package/dist/Still.d.ts.map +1 -1
- package/dist/asset-types.d.ts +52 -13
- package/dist/asset-types.d.ts.map +1 -1
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.d.ts.map +1 -1
- package/dist/audio/AudioForDevelopment.js.map +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts.map +1 -1
- package/dist/audio/AudioForRendering.js +0 -2
- package/dist/audio/AudioForRendering.js.map +1 -1
- package/dist/audio/audio-buffer-to-wav.d.ts +15 -0
- package/dist/audio/audio-buffer-to-wav.d.ts.map +1 -0
- package/dist/audio/audio-buffer-to-wav.js +91 -0
- package/dist/audio/audio-buffer-to-wav.js.map +1 -0
- package/dist/audio/audio-url-helpers.d.ts +2 -0
- package/dist/audio/audio-url-helpers.d.ts.map +1 -0
- package/dist/audio/audio-url-helpers.js +17 -0
- package/dist/audio/audio-url-helpers.js.map +1 -0
- package/dist/audio/shared-audio-tags.d.ts.map +1 -1
- package/dist/audio/shared-audio-tags.js +1 -1
- package/dist/audio/shared-audio-tags.js.map +1 -1
- package/dist/compress-assets.d.ts +8 -0
- package/dist/compress-assets.d.ts.map +1 -0
- package/dist/compress-assets.js +26 -0
- package/dist/compress-assets.js.map +1 -0
- package/dist/config/crf.d.ts +1 -1
- package/dist/config/crf.d.ts.map +1 -1
- package/dist/config/crf.js +6 -0
- package/dist/config/crf.js.map +1 -1
- package/dist/config/ffmpeg-executable.d.ts +4 -0
- package/dist/config/ffmpeg-executable.d.ts.map +1 -0
- package/dist/config/ffmpeg-executable.js +13 -0
- package/dist/config/ffmpeg-executable.js.map +1 -0
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +9 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/log.d.ts +3 -2
- package/dist/config/log.d.ts.map +1 -1
- package/dist/config/log.js +5 -4
- package/dist/config/log.js.map +1 -1
- package/dist/config/overwrite.d.ts +1 -0
- package/dist/config/overwrite.d.ts.map +1 -1
- package/dist/config/overwrite.js +3 -2
- package/dist/config/overwrite.js.map +1 -1
- package/dist/default-css.d.ts.map +1 -1
- package/dist/default-css.js +1 -0
- package/dist/default-css.js.map +1 -1
- package/dist/freeze.d.ts.map +1 -1
- package/dist/freeze.js +3 -0
- package/dist/freeze.js.map +1 -1
- package/dist/get-asset-file-name.d.ts +1 -1
- package/dist/get-asset-file-name.d.ts.map +1 -1
- package/dist/get-asset-file-name.js +6 -3
- package/dist/get-asset-file-name.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +14 -10
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +6 -0
- package/dist/internals.js.map +1 -1
- package/dist/interpolate.d.ts.map +1 -1
- package/dist/interpolate.js +9 -5
- package/dist/interpolate.js.map +1 -1
- package/dist/is-remote-asset.d.ts +1 -1
- package/dist/is-remote-asset.d.ts.map +1 -1
- package/dist/is-remote-asset.js +3 -1
- package/dist/is-remote-asset.js.map +1 -1
- package/dist/play-and-handle-not-allowed-error.d.ts +3 -0
- package/dist/play-and-handle-not-allowed-error.d.ts.map +1 -0
- package/dist/play-and-handle-not-allowed-error.js +34 -0
- package/dist/play-and-handle-not-allowed-error.js.map +1 -0
- package/dist/register-root.js +1 -0
- package/dist/register-root.js.map +1 -1
- package/dist/static-file.d.ts +2 -0
- package/dist/static-file.d.ts.map +1 -0
- package/dist/static-file.js +24 -0
- package/dist/static-file.js.map +1 -0
- package/dist/timeline-position-state.d.ts +11 -2
- package/dist/timeline-position-state.d.ts.map +1 -1
- package/dist/timeline-position-state.js +10 -2
- package/dist/timeline-position-state.js.map +1 -1
- package/dist/use-media-in-timeline.d.ts.map +1 -1
- package/dist/use-media-in-timeline.js +30 -3
- package/dist/use-media-in-timeline.js.map +1 -1
- package/dist/use-media-playback.d.ts +1 -1
- package/dist/use-media-playback.d.ts.map +1 -1
- package/dist/use-media-playback.js +12 -28
- package/dist/use-media-playback.js.map +1 -1
- package/dist/use-unsafe-video-config.d.ts.map +1 -1
- package/dist/use-unsafe-video-config.js +2 -1
- package/dist/use-unsafe-video-config.js.map +1 -1
- package/dist/use-video.d.ts.map +1 -1
- package/dist/use-video.js +6 -4
- package/dist/use-video.js.map +1 -1
- 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/dist/video/VideoForRendering.d.ts.map +1 -1
- package/dist/video/VideoForRendering.js +1 -3
- package/dist/video/VideoForRendering.js.map +1 -1
- package/dist/video-config.d.ts +1 -0
- package/dist/video-config.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate, }: {
|
|
2
|
+
export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }: {
|
|
3
3
|
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
4
4
|
src: string | undefined;
|
|
5
5
|
mediaType: 'audio' | 'video';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAwB,MAAM,OAAO,CAAC;AASvD,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UA2EpB,CAAC"}
|
|
@@ -3,41 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useMediaPlayback = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const use_audio_frame_1 = require("./audio/use-audio-frame");
|
|
6
|
+
const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
|
|
6
7
|
const timeline_position_state_1 = require("./timeline-position-state");
|
|
7
8
|
const use_frame_1 = require("./use-frame");
|
|
8
9
|
const use_video_config_1 = require("./use-video-config");
|
|
9
10
|
const get_current_time_1 = require("./video/get-current-time");
|
|
10
11
|
const warn_about_non_seekable_media_1 = require("./warn-about-non-seekable-media");
|
|
11
|
-
const
|
|
12
|
-
const {
|
|
13
|
-
const prom = current === null || current === void 0 ? void 0 : current.play();
|
|
14
|
-
if (prom === null || prom === void 0 ? void 0 : prom.catch) {
|
|
15
|
-
prom === null || prom === void 0 ? void 0 : prom.catch((err) => {
|
|
16
|
-
if (!current) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
console.log(`Could not play ${mediaType} due to following error: `, err);
|
|
20
|
-
if (!current.muted) {
|
|
21
|
-
console.log(`The video will be muted and we'll retry playing it.`, err);
|
|
22
|
-
current.muted = true;
|
|
23
|
-
current.play();
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
12
|
+
const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }) => {
|
|
13
|
+
const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
|
|
29
14
|
const frame = (0, use_frame_1.useCurrentFrame)();
|
|
30
15
|
const absoluteFrame = (0, use_frame_1.useAbsoluteCurrentFrame)();
|
|
31
16
|
const [playing] = (0, timeline_position_state_1.usePlayingState)();
|
|
32
17
|
const { fps } = (0, use_video_config_1.useVideoConfig)();
|
|
33
18
|
const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
|
|
19
|
+
const playbackRate = localPlaybackRate * globalPlaybackRate;
|
|
34
20
|
(0, react_1.useEffect)(() => {
|
|
35
|
-
var _a
|
|
36
|
-
if (playing
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
(_b = mediaRef.current) === null || _b === void 0 ? void 0 : _b.pause();
|
|
21
|
+
var _a;
|
|
22
|
+
if (!playing) {
|
|
23
|
+
(_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
|
41
24
|
}
|
|
42
25
|
}, [mediaRef, mediaType, playing]);
|
|
43
26
|
(0, react_1.useEffect)(() => {
|
|
@@ -48,18 +31,18 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
|
48
31
|
if (!src) {
|
|
49
32
|
throw new Error(`No 'src' attribute was passed to the ${tagName} element.`);
|
|
50
33
|
}
|
|
51
|
-
mediaRef.current.playbackRate = playbackRate;
|
|
34
|
+
mediaRef.current.playbackRate = Math.max(0, playbackRate);
|
|
52
35
|
const shouldBeTime = (0, get_current_time_1.getMediaTime)({
|
|
53
36
|
fps,
|
|
54
37
|
frame,
|
|
55
38
|
src,
|
|
56
|
-
playbackRate,
|
|
39
|
+
playbackRate: localPlaybackRate,
|
|
57
40
|
startFrom: -mediaStartsAt,
|
|
58
41
|
});
|
|
59
42
|
const isTime = mediaRef.current.currentTime;
|
|
60
43
|
const timeShift = Math.abs(shouldBeTime - isTime);
|
|
61
44
|
if (timeShift > 0.45 && !mediaRef.current.ended) {
|
|
62
|
-
console.log('Time has shifted by', timeShift, 'sec. Fixing...');
|
|
45
|
+
console.log('Time has shifted by', timeShift, 'sec. Fixing...', `(isTime=${isTime},shouldBeTime=${shouldBeTime})`);
|
|
63
46
|
// If scrubbing around, adjust timing
|
|
64
47
|
// or if time shift is bigger than 0.2sec
|
|
65
48
|
mediaRef.current.currentTime = shouldBeTime;
|
|
@@ -71,7 +54,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
|
71
54
|
if (mediaRef.current.paused && !mediaRef.current.ended && playing) {
|
|
72
55
|
const { current } = mediaRef;
|
|
73
56
|
current.currentTime = shouldBeTime;
|
|
74
|
-
playAndHandleNotAllowedError(mediaRef, mediaType);
|
|
57
|
+
(0, play_and_handle_not_allowed_error_1.playAndHandleNotAllowedError)(mediaRef, mediaType);
|
|
75
58
|
}
|
|
76
59
|
}, [
|
|
77
60
|
absoluteFrame,
|
|
@@ -83,6 +66,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
|
83
66
|
playing,
|
|
84
67
|
src,
|
|
85
68
|
mediaStartsAt,
|
|
69
|
+
localPlaybackRate,
|
|
86
70
|
]);
|
|
87
71
|
};
|
|
88
72
|
exports.useMediaPlayback = useMediaPlayback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-playback.js","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"use-media-playback.js","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AACvD,6DAAyD;AACzD,2FAAiF;AACjF,uEAA2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
|
1
|
-
{"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,IAoBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;QAEzD,OAAO;YACN,EAAE;YACF,KAAK;YACL,MAAM;YACN,GAAG;YACH,gBAAgB,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gBAAgB;SACjD,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
|
package/dist/use-video.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-video.d.ts","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"use-video.d.ts","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mEASpB,CAAC"}
|
package/dist/use-video.js
CHANGED
|
@@ -4,11 +4,13 @@ exports.useVideo = void 0;
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const CompositionManager_1 = require("./CompositionManager");
|
|
6
6
|
const useVideo = () => {
|
|
7
|
-
var _a;
|
|
8
7
|
const context = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
9
|
-
return (
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return (0, react_1.useMemo)(() => {
|
|
9
|
+
var _a;
|
|
10
|
+
return (_a = context.compositions.find((c) => {
|
|
11
|
+
return c.id === context.currentComposition;
|
|
12
|
+
})) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
}, [context.compositions, context.currentComposition]);
|
|
12
14
|
};
|
|
13
15
|
exports.useVideo = useVideo;
|
|
14
16
|
//# sourceMappingURL=use-video.js.map
|
package/dist/use-video.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-video.js","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"use-video.js","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6DAAwD;AAEjD,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC5B,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAC/C,OAAO,IAAA,eAAO,EACb,GAAG,EAAE;;QACJ,OAAA,MAAA,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YAC/B,OAAO,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,kBAAkB,CAAC;QAC5C,CAAC,CAAC,mCAAI,IAAI,CAAA;KAAA,EACX,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAClD,CAAC;AACH,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB"}
|
package/dist/video/Video.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { RemotionMainVideoProps } from './props';
|
|
|
3
3
|
export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainVideoProps, "
|
|
6
|
+
} & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "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" | "onEnded" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
|
|
7
7
|
//# sourceMappingURL=Video.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionVideoProps } from './props';
|
|
3
|
-
export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "
|
|
3
|
+
export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "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" | "onEnded" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
|
|
4
4
|
//# sourceMappingURL=VideoForDevelopment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionVideoProps } from './props';
|
|
3
|
-
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "
|
|
3
|
+
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "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" | "onEnded" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
|
|
4
4
|
//# sourceMappingURL=VideoForRendering.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoForRendering.d.ts","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoForRendering.d.ts","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAef,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiK3C,eAAO,MAAM,iBAAiB,yyJAA+C,CAAC"}
|
|
@@ -7,7 +7,6 @@ const absolute_src_1 = require("../absolute-src");
|
|
|
7
7
|
const use_audio_frame_1 = require("../audio/use-audio-frame");
|
|
8
8
|
const CompositionManager_1 = require("../CompositionManager");
|
|
9
9
|
const is_approximately_the_same_1 = require("../is-approximately-the-same");
|
|
10
|
-
const is_remote_asset_1 = require("../is-remote-asset");
|
|
11
10
|
const random_1 = require("../random");
|
|
12
11
|
const ready_manager_1 = require("../ready-manager");
|
|
13
12
|
const sequencing_1 = require("../sequencing");
|
|
@@ -28,7 +27,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
|
|
|
28
27
|
// but at the same time the same on all threads
|
|
29
28
|
const id = (0, react_1.useMemo)(() => {
|
|
30
29
|
var _a;
|
|
31
|
-
return `
|
|
30
|
+
return `video-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`;
|
|
32
31
|
}, [
|
|
33
32
|
props.src,
|
|
34
33
|
props.muted,
|
|
@@ -57,7 +56,6 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
|
|
|
57
56
|
id,
|
|
58
57
|
frame: absoluteFrame,
|
|
59
58
|
volume,
|
|
60
|
-
isRemote: (0, is_remote_asset_1.isRemoteAsset)((0, absolute_src_1.getAbsoluteSrc)(props.src)),
|
|
61
59
|
mediaFrame: frame,
|
|
62
60
|
playbackRate: playbackRate !== null && playbackRate !== void 0 ? playbackRate : 1,
|
|
63
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoForRendering.js","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;AAC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BAC1D,UAAU,CAAC,GAAG,EAAE;oBACf,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;gBACxB,CAAC,EAAE,GAAG,CAAC,CAAC;aACR;iBAAM;gBACN,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;aACvB;QACF,CAAC,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACZ,CAAC;QACF,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAChC,OAAO,EACP,GAAG,EAAE;YACJ,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACxB,CAAC,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACZ,CAAC;QACF,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAChC,OAAO,EACP,CAAC,GAAG,EAAE,EAAE;YACP,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;YAC9C,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACxB,CAAC,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACZ,CAAC;IACH,CAAC,EAAE;QACF,gBAAgB;QAChB,KAAK,CAAC,GAAG;QACT,YAAY;QACZ,WAAW,CAAC,GAAG;QACf,KAAK;QACL,aAAa;KACb,CAAC,CAAC;IAEH,OAAO,gDAAO,GAAG,EAAE,QAAQ,IAAM,KAAK,IAAE,OAAO,EAAE,OAAO,YAAI,CAAC;AAC9D,CAAC,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,kBAAU,EAAC,gCAAgC,CAAC,CAAC"}
|
package/dist/video-config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.250+8bed66801",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
35
35
|
"ts-jest": "^27.0.5",
|
|
36
36
|
"typescript": "^4.4.2",
|
|
37
|
-
"webpack": "5.
|
|
37
|
+
"webpack": "5.60.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8bed66801069bc79ca88be6ae89846022e68424b"
|
|
43
43
|
}
|