remotion 3.3.18 → 3.3.19
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 +1 -1
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/dist/audio/Audio.js +3 -0
- package/dist/audio/AudioForRendering.js +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/video/OffthreadVideo.js +3 -0
- package/dist/video/Video.js +3 -0
- package/dist/video/VideoForRendering.js +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Remotion is a framework for **creating videos programmatically using React.**
|
|
|
31
31
|
</td>
|
|
32
32
|
<td align="center">
|
|
33
33
|
<img style="width: 240px" src="packages/docs/static/img/unwrapped-2022.gif" />
|
|
34
|
-
<p>GitHub Unwrapped - Personalized
|
|
34
|
+
<p>GitHub Unwrapped - Personalized Year in Review <a href="https://www.githubunwrapped.com">Try</a> • <a href="https://github.com/remotion-dev/github-unwrapped-2022">Source</a></p>
|
|
35
35
|
</td>
|
|
36
36
|
<td align="center">
|
|
37
37
|
<em>View more in the <a href="https://remotion.dev/showcase">Remotion Showcase</a>!</em>
|
package/dist/audio/Audio.js
CHANGED
|
@@ -20,6 +20,9 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
20
20
|
const { loop, ...propsOtherThanLoop } = props;
|
|
21
21
|
const { fps } = (0, use_video_config_1.useVideoConfig)();
|
|
22
22
|
const { durations, setDurations } = (0, react_1.useContext)(duration_state_1.DurationsContext);
|
|
23
|
+
if (typeof props.src !== 'string') {
|
|
24
|
+
throw new TypeError(`The \`<Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
25
|
+
}
|
|
23
26
|
const onError = (0, react_1.useCallback)((e) => {
|
|
24
27
|
console.log(e.currentTarget.error);
|
|
25
28
|
throw new Error(`Could not play audio with src ${otherProps.src}: ${e.currentTarget.error}. See https://remotion.dev/docs/media-playback-error for help.`);
|
|
@@ -86,7 +86,7 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
86
86
|
const newHandle = (0, delay_render_1.delayRender)('Loading <Audio> duration with src=' + src);
|
|
87
87
|
const { current } = audioRef;
|
|
88
88
|
const didLoad = () => {
|
|
89
|
-
if (current) {
|
|
89
|
+
if (current === null || current === void 0 ? void 0 : current.duration) {
|
|
90
90
|
onDuration(src, current.duration);
|
|
91
91
|
}
|
|
92
92
|
(0, delay_render_1.continueRender)(newHandle);
|
package/dist/config.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export declare type ConfigType = {
|
|
|
39
39
|
* @default null
|
|
40
40
|
*/
|
|
41
41
|
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Whether Remotion should open a browser when starting the Preview.
|
|
44
|
+
* @param should
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
readonly setShouldOpenBrowser: (should: boolean) => void;
|
|
42
48
|
};
|
|
43
49
|
readonly Bundling: {
|
|
44
50
|
/**
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
1
|
+
export declare const VERSION = "3.3.19";
|
package/dist/version.js
CHANGED
|
@@ -13,6 +13,9 @@ const VideoForDevelopment_1 = require("./VideoForDevelopment");
|
|
|
13
13
|
const OffthreadVideo = (props) => {
|
|
14
14
|
const { startFrom, endAt, ...otherProps } = props;
|
|
15
15
|
const onDuration = (0, react_1.useCallback)(() => undefined, []);
|
|
16
|
+
if (typeof props.src !== 'string') {
|
|
17
|
+
throw new TypeError(`The \`<OffthreadVideo>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
18
|
+
}
|
|
16
19
|
if (typeof startFrom !== 'undefined' || typeof endAt !== 'undefined') {
|
|
17
20
|
(0, validate_start_from_props_1.validateStartFromProps)(startFrom, endAt);
|
|
18
21
|
const startFromFrameNo = startFrom !== null && startFrom !== void 0 ? startFrom : 0;
|
package/dist/video/Video.js
CHANGED
|
@@ -21,6 +21,9 @@ const VideoForwardingFunction = (props, ref) => {
|
|
|
21
21
|
if (typeof ref === 'string') {
|
|
22
22
|
throw new Error('string refs are not supported');
|
|
23
23
|
}
|
|
24
|
+
if (typeof props.src !== 'string') {
|
|
25
|
+
throw new TypeError(`The \`<Video>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
26
|
+
}
|
|
24
27
|
const onDuration = (0, react_1.useCallback)((src, durationInSeconds) => {
|
|
25
28
|
setDurations({ type: 'got-duration', durationInSeconds, src });
|
|
26
29
|
}, [setDurations]);
|
|
@@ -178,7 +178,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAm
|
|
|
178
178
|
const newHandle = (0, delay_render_1.delayRender)('Loading <Video> duration with src=' + src);
|
|
179
179
|
const { current } = videoRef;
|
|
180
180
|
const didLoad = () => {
|
|
181
|
-
if (current) {
|
|
181
|
+
if (current === null || current === void 0 ? void 0 : current.duration) {
|
|
182
182
|
onDuration(src, current.duration);
|
|
183
183
|
}
|
|
184
184
|
(0, delay_render_1.continueRender)(newHandle);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.19",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "097ff40cd34ecba3c7ebbbc08b442827b0f4ad7d"
|
|
59
59
|
}
|