remotion 3.2.9 → 3.2.10
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 +5 -5
- package/dist/audio/AudioForRendering.js +5 -2
- package/dist/config/bundle-out-dir.d.ts +2 -0
- package/dist/config/bundle-out-dir.js +12 -0
- package/dist/config/public-path.d.ts +2 -0
- package/dist/config/public-path.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/video/OffthreadVideoForRendering.js +4 -2
- package/dist/video/VideoForRendering.js +4 -2
- package/package.json +2 -2
- package/dist/caption/index.d.ts +0 -4
- package/dist/caption/index.js +0 -26
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[35mremotion:build: [0mcache hit, replaying output [2m3f210b6bc8b179a0[0m
|
|
2
|
+
[35mremotion:build: [0m
|
|
3
|
+
[35mremotion:build: [0m> remotion@3.2.9 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[35mremotion:build: [0m> tsc -d
|
|
5
|
+
[35mremotion:build: [0m
|
|
@@ -22,8 +22,8 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
22
22
|
// but at the same time the same on all threads
|
|
23
23
|
const id = (0, react_1.useMemo)(() => {
|
|
24
24
|
var _a;
|
|
25
|
-
return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}
|
|
26
|
-
}, [props.
|
|
25
|
+
return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`;
|
|
26
|
+
}, [props.src, sequenceContext]);
|
|
27
27
|
const { volume: volumeProp, playbackRate, ...nativeProps } = props;
|
|
28
28
|
const volume = (0, volume_prop_1.evaluateVolume)({
|
|
29
29
|
volume: volumeProp,
|
|
@@ -44,6 +44,9 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
44
44
|
if (props.muted) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
+
if (volume <= 0) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
47
50
|
registerAsset({
|
|
48
51
|
type: 'audio',
|
|
49
52
|
src: (0, absolute_src_1.getAbsoluteSrc)(props.src),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setBundleOutDir = exports.getBundleOutDir = void 0;
|
|
4
|
+
let bundleOutDir = null;
|
|
5
|
+
const getBundleOutDir = () => {
|
|
6
|
+
return bundleOutDir;
|
|
7
|
+
};
|
|
8
|
+
exports.getBundleOutDir = getBundleOutDir;
|
|
9
|
+
const setBundleOutDir = (path) => {
|
|
10
|
+
bundleOutDir = path;
|
|
11
|
+
};
|
|
12
|
+
exports.setBundleOutDir = setBundleOutDir;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setPublicPath = exports.getPublicPath = void 0;
|
|
4
|
+
let publicPath = null;
|
|
5
|
+
const getPublicPath = () => {
|
|
6
|
+
return publicPath;
|
|
7
|
+
};
|
|
8
|
+
exports.getPublicPath = getPublicPath;
|
|
9
|
+
const setPublicPath = (path) => {
|
|
10
|
+
publicPath = path;
|
|
11
|
+
};
|
|
12
|
+
exports.setPublicPath = setPublicPath;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.2.
|
|
1
|
+
export declare const VERSION = "3.2.10";
|
package/dist/version.js
CHANGED
|
@@ -30,9 +30,8 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
|
|
|
30
30
|
}
|
|
31
31
|
// Generate a string that's as unique as possible for this asset
|
|
32
32
|
// but at the same time the same on all threads
|
|
33
|
-
const id = (0, react_1.useMemo)(() => `
|
|
33
|
+
const id = (0, react_1.useMemo)(() => `offthreadvideo-${(0, random_1.random)(src !== null && src !== void 0 ? src : '')}-${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}`, [
|
|
34
34
|
src,
|
|
35
|
-
muted,
|
|
36
35
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom,
|
|
37
36
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom,
|
|
38
37
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames,
|
|
@@ -55,6 +54,9 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
|
|
|
55
54
|
if (muted) {
|
|
56
55
|
return;
|
|
57
56
|
}
|
|
57
|
+
if (volume <= 0) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
58
60
|
registerAsset({
|
|
59
61
|
type: 'video',
|
|
60
62
|
src: (0, absolute_src_1.getAbsoluteSrc)(src),
|
|
@@ -29,10 +29,9 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
|
|
|
29
29
|
// but at the same time the same on all threads
|
|
30
30
|
const id = (0, react_1.useMemo)(() => {
|
|
31
31
|
var _a;
|
|
32
|
-
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}
|
|
32
|
+
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}`;
|
|
33
33
|
}, [
|
|
34
34
|
props.src,
|
|
35
|
-
props.muted,
|
|
36
35
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom,
|
|
37
36
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom,
|
|
38
37
|
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames,
|
|
@@ -52,6 +51,9 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
|
|
|
52
51
|
if (props.muted) {
|
|
53
52
|
return;
|
|
54
53
|
}
|
|
54
|
+
if (volume <= 0) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
55
57
|
if (!window.remotion_audioEnabled) {
|
|
56
58
|
return;
|
|
57
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "66ad527dc06a14b7d6d5aab8ff8e736e67db8154"
|
|
58
58
|
}
|
package/dist/caption/index.d.ts
DELETED
package/dist/caption/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Caption = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const absolute_src_1 = require("../absolute-src");
|
|
6
|
-
const CompositionManager_1 = require("../CompositionManager");
|
|
7
|
-
const get_environment_1 = require("../get-environment");
|
|
8
|
-
const Caption = (props) => {
|
|
9
|
-
const { language, src, title } = props;
|
|
10
|
-
const { registerCaption, unregisterCaption } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
11
|
-
(0, react_1.useEffect)(() => {
|
|
12
|
-
if ((0, get_environment_1.getRemotionEnvironment)() !== 'rendering') {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const id = `caption-${src}`;
|
|
16
|
-
registerCaption({
|
|
17
|
-
id,
|
|
18
|
-
language,
|
|
19
|
-
src: (0, absolute_src_1.getAbsoluteSrc)(src),
|
|
20
|
-
title,
|
|
21
|
-
});
|
|
22
|
-
return () => unregisterCaption(id);
|
|
23
|
-
}, [language, registerCaption, src, title, unregisterCaption]);
|
|
24
|
-
return null;
|
|
25
|
-
};
|
|
26
|
-
exports.Caption = Caption;
|