@remotion/three 4.0.339 → 4.0.341
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/LICENSE.md +7 -7
- package/dist/cjs/use-video-texture.js +1 -5
- package/dist/esm/index.mjs +7 -6
- package/package.json +5 -5
package/LICENSE.md
CHANGED
|
@@ -6,10 +6,10 @@ In Remotion 5.0, the license will slightly change. [View the changes here](https
|
|
|
6
6
|
|
|
7
7
|
Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
|
|
8
8
|
|
|
9
|
-
- [Free
|
|
10
|
-
- [Company
|
|
9
|
+
- [Free License](#free-license)
|
|
10
|
+
- [Company License](#company-license)
|
|
11
11
|
|
|
12
|
-
## Free
|
|
12
|
+
## Free License
|
|
13
13
|
|
|
14
14
|
Copyright © 2025 [Remotion](https://www.remotion.dev)
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ You are eligible to use Remotion for free if you are:
|
|
|
24
24
|
|
|
25
25
|
### Allowed use cases
|
|
26
26
|
|
|
27
|
-
Permission is hereby granted, free of charge, to any person eligible for the "Free
|
|
27
|
+
Permission is hereby granted, free of charge, to any person eligible for the "Free License", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
|
|
28
28
|
|
|
29
29
|
### Disallowed use cases
|
|
30
30
|
|
|
@@ -38,12 +38,12 @@ The software is provided "as is", without warranty of any kind, express or impli
|
|
|
38
38
|
|
|
39
39
|
Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
40
40
|
|
|
41
|
-
## Company
|
|
41
|
+
## Company License
|
|
42
42
|
|
|
43
|
-
You are required to obtain a
|
|
43
|
+
You are required to obtain a Company License to use Remotion if you are not within the group of entities eligible for a Free License. This license will enable you to use Remotion for the allowed use cases specified in the Free License, and give you access to prioritized support (read the [Support Policy](https://www.remotion.dev/docs/support)).
|
|
44
44
|
|
|
45
45
|
Visit [remotion.pro](https://www.remotion.pro/license) for pricing and to buy a license.
|
|
46
46
|
|
|
47
47
|
### FAQs
|
|
48
48
|
|
|
49
|
-
Are you not sure whether you need a
|
|
49
|
+
Are you not sure whether you need a Company License because of an edge case? Here are some [frequently asked questions](https://www.remotion.pro/faq).
|
|
@@ -58,11 +58,7 @@ const useVideoTexture = (videoRef) => {
|
|
|
58
58
|
});
|
|
59
59
|
const [videoTexture, setVideoTexture] = (0, react_1.useState)(null);
|
|
60
60
|
const [vidText] = (0, react_1.useState)(() => Promise.resolve().then(() => __importStar(require('three/src/textures/VideoTexture.js'))));
|
|
61
|
-
const [error, setError] = (0, react_1.useState)(null);
|
|
62
61
|
const frame = (0, remotion_1.useCurrentFrame)();
|
|
63
|
-
if (error) {
|
|
64
|
-
throw error;
|
|
65
|
-
}
|
|
66
62
|
const onReady = (0, react_1.useCallback)(() => {
|
|
67
63
|
vidText
|
|
68
64
|
.then(({ VideoTexture }) => {
|
|
@@ -76,7 +72,7 @@ const useVideoTexture = (videoRef) => {
|
|
|
76
72
|
(0, remotion_1.continueRender)(loaded);
|
|
77
73
|
})
|
|
78
74
|
.catch((err) => {
|
|
79
|
-
|
|
75
|
+
(0, remotion_1.cancelRender)(err);
|
|
80
76
|
});
|
|
81
77
|
}, [loaded, vidText, videoRef]);
|
|
82
78
|
react_1.default.useLayoutEffect(() => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -225,7 +225,12 @@ function useOffthreadVideoTexture({
|
|
|
225
225
|
}
|
|
226
226
|
// src/use-video-texture.ts
|
|
227
227
|
import React3, { useCallback as useCallback3, useEffect as useEffect2, useState as useState3 } from "react";
|
|
228
|
-
import {
|
|
228
|
+
import {
|
|
229
|
+
cancelRender as cancelRender2,
|
|
230
|
+
continueRender as continueRender4,
|
|
231
|
+
delayRender as delayRender4,
|
|
232
|
+
useCurrentFrame as useCurrentFrame3
|
|
233
|
+
} from "remotion";
|
|
229
234
|
var warned = false;
|
|
230
235
|
var warnAboutRequestVideoFrameCallback = () => {
|
|
231
236
|
if (warned) {
|
|
@@ -243,11 +248,7 @@ var useVideoTexture = (videoRef) => {
|
|
|
243
248
|
});
|
|
244
249
|
const [videoTexture, setVideoTexture] = useState3(null);
|
|
245
250
|
const [vidText] = useState3(() => import("three/src/textures/VideoTexture.js"));
|
|
246
|
-
const [error, setError] = useState3(null);
|
|
247
251
|
const frame = useCurrentFrame3();
|
|
248
|
-
if (error) {
|
|
249
|
-
throw error;
|
|
250
|
-
}
|
|
251
252
|
const onReady = useCallback3(() => {
|
|
252
253
|
vidText.then(({ VideoTexture }) => {
|
|
253
254
|
if (!videoRef.current) {
|
|
@@ -259,7 +260,7 @@ var useVideoTexture = (videoRef) => {
|
|
|
259
260
|
setVideoTexture(vt);
|
|
260
261
|
continueRender4(loaded);
|
|
261
262
|
}).catch((err) => {
|
|
262
|
-
|
|
263
|
+
cancelRender2(err);
|
|
263
264
|
});
|
|
264
265
|
}, [loaded, vidText, videoRef]);
|
|
265
266
|
React3.useLayoutEffect(() => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/three"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/three",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.341",
|
|
7
7
|
"description": "Include React Three Fiber components in a Remotion video",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.341"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@react-three/fiber": ">=8.0.0",
|
|
23
23
|
"react": ">=16.8.0",
|
|
24
24
|
"react-dom": ">=16.8.0",
|
|
25
25
|
"three": ">=0.137.0",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.341"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@react-three/fiber": "9.2.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"react-dom": "19.0.0",
|
|
35
35
|
"three": "0.178.0",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
|
-
"remotion": "4.0.
|
|
38
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"remotion": "4.0.341",
|
|
38
|
+
"@remotion/eslint-config-internal": "4.0.341"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"remotion",
|