remotion 4.0.397 → 4.0.398
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/audio/Audio.js
CHANGED
|
@@ -26,6 +26,9 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
26
26
|
const { loop, ...propsOtherThanLoop } = props;
|
|
27
27
|
const { fps } = (0, use_video_config_js_1.useVideoConfig)();
|
|
28
28
|
const environment = (0, use_remotion_environment_js_1.useRemotionEnvironment)();
|
|
29
|
+
if (environment.isClientSideRendering) {
|
|
30
|
+
throw new Error('<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations');
|
|
31
|
+
}
|
|
29
32
|
const { durations, setDurations } = (0, react_1.useContext)(duration_state_js_1.DurationsContext);
|
|
30
33
|
if (typeof props.src !== 'string') {
|
|
31
34
|
throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -15,6 +15,9 @@ const InnerOffthreadVideo = (props) => {
|
|
|
15
15
|
// rest gets drilled down
|
|
16
16
|
const { startFrom, endAt, trimBefore, trimAfter, name, pauseWhenBuffering, stack, showInTimeline, ...otherProps } = props;
|
|
17
17
|
const environment = (0, use_remotion_environment_js_1.useRemotionEnvironment)();
|
|
18
|
+
if (environment.isClientSideRendering) {
|
|
19
|
+
throw new Error('<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations');
|
|
20
|
+
}
|
|
18
21
|
const onDuration = (0, react_1.useCallback)(() => undefined, []);
|
|
19
22
|
if (typeof props.src !== 'string') {
|
|
20
23
|
throw new TypeError(`The \`<OffthreadVideo>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
package/dist/cjs/video/Video.js
CHANGED
|
@@ -23,6 +23,9 @@ const VideoForwardingFunction = (props, ref) => {
|
|
|
23
23
|
const { loop, ...propsOtherThanLoop } = props;
|
|
24
24
|
const { fps } = (0, use_video_config_js_1.useVideoConfig)();
|
|
25
25
|
const environment = (0, use_remotion_environment_js_1.useRemotionEnvironment)();
|
|
26
|
+
if (environment.isClientSideRendering) {
|
|
27
|
+
throw new Error('<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations');
|
|
28
|
+
}
|
|
26
29
|
const { durations, setDurations } = (0, react_1.useContext)(duration_state_js_1.DurationsContext);
|
|
27
30
|
if (typeof ref === 'string') {
|
|
28
31
|
throw new Error('string refs are not supported');
|
package/dist/esm/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ function truthy(value) {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// src/version.ts
|
|
113
|
-
var VERSION = "4.0.
|
|
113
|
+
var VERSION = "4.0.398";
|
|
114
114
|
|
|
115
115
|
// src/multiple-versions-warning.ts
|
|
116
116
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -5093,6 +5093,9 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
5093
5093
|
const { loop, ...propsOtherThanLoop } = props;
|
|
5094
5094
|
const { fps } = useVideoConfig();
|
|
5095
5095
|
const environment = useRemotionEnvironment();
|
|
5096
|
+
if (environment.isClientSideRendering) {
|
|
5097
|
+
throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
5098
|
+
}
|
|
5096
5099
|
const { durations, setDurations } = useContext27(DurationsContext);
|
|
5097
5100
|
if (typeof props.src !== "string") {
|
|
5098
5101
|
throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
@@ -6825,6 +6828,9 @@ var InnerOffthreadVideo = (props2) => {
|
|
|
6825
6828
|
...otherProps
|
|
6826
6829
|
} = props2;
|
|
6827
6830
|
const environment = useRemotionEnvironment();
|
|
6831
|
+
if (environment.isClientSideRendering) {
|
|
6832
|
+
throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
6833
|
+
}
|
|
6828
6834
|
const onDuration = useCallback16(() => {
|
|
6829
6835
|
return;
|
|
6830
6836
|
}, []);
|
|
@@ -8378,6 +8384,9 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
8378
8384
|
const { loop, ...propsOtherThanLoop } = props2;
|
|
8379
8385
|
const { fps } = useVideoConfig();
|
|
8380
8386
|
const environment = useRemotionEnvironment();
|
|
8387
|
+
if (environment.isClientSideRendering) {
|
|
8388
|
+
throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
8389
|
+
}
|
|
8381
8390
|
const { durations, setDurations } = useContext35(DurationsContext);
|
|
8382
8391
|
if (typeof ref === "string") {
|
|
8383
8392
|
throw new Error("string refs are not supported");
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
|
|
4
4
|
},
|
|
5
5
|
"name": "remotion",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.398",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "19.2.3",
|
|
35
35
|
"webpack": "5.96.1",
|
|
36
36
|
"zod": "3.22.3",
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.398",
|
|
38
38
|
"eslint": "9.19.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|