remotion 4.0.386 → 4.0.388
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/README.md +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/VideoForRendering.js +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -4
- package/dist/cjs/calculate-loop.d.ts +0 -6
- package/dist/cjs/calculate-loop.js +0 -17
- package/dist/cjs/video/use-audio-channel-index.d.ts +0 -4
- package/dist/cjs/video/use-audio-channel-index.js +0 -13
- package/dist/esm/index.mjs.map +0 -137
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://github.com/remotion-dev/logo">
|
|
3
3
|
<picture>
|
|
4
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-dark.
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-dark.apng">
|
|
5
5
|
<img alt="Animated Remotion Logo" src="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-light.gif">
|
|
6
6
|
</picture>
|
|
7
7
|
</a>
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -19,7 +19,7 @@ const volume_prop_js_1 = require("../volume-prop.js");
|
|
|
19
19
|
const volume_safeguard_js_1 = require("../volume-safeguard.js");
|
|
20
20
|
const get_current_time_js_1 = require("./get-current-time.js");
|
|
21
21
|
const seek_until_right_js_1 = require("./seek-until-right.js");
|
|
22
|
-
const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAmplificationDuringRender, playbackRate, onDuration, toneFrequency, name, acceptableTimeShiftInSeconds, delayRenderRetries, delayRenderTimeoutInMilliseconds, loopVolumeCurveBehavior, audioStreamIndex, ...props }, ref) => {
|
|
22
|
+
const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAmplificationDuringRender, playbackRate, onDuration, toneFrequency, name, acceptableTimeShiftInSeconds, delayRenderRetries, delayRenderTimeoutInMilliseconds, loopVolumeCurveBehavior, audioStreamIndex, onVideoFrame, ...props }, ref) => {
|
|
23
23
|
const absoluteFrame = (0, timeline_position_state_js_1.useTimelinePosition)();
|
|
24
24
|
const frame = (0, use_current_frame_js_1.useCurrentFrame)();
|
|
25
25
|
const volumePropsFrame = (0, use_audio_frame_js_1.useFrameForVolumeProp)(loopVolumeCurveBehavior !== null && loopVolumeCurveBehavior !== void 0 ? loopVolumeCurveBehavior : 'repeat');
|
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.388";
|
|
114
114
|
|
|
115
115
|
// src/multiple-versions-warning.ts
|
|
116
116
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -8106,6 +8106,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
8106
8106
|
delayRenderTimeoutInMilliseconds,
|
|
8107
8107
|
loopVolumeCurveBehavior,
|
|
8108
8108
|
audioStreamIndex,
|
|
8109
|
+
onVideoFrame,
|
|
8109
8110
|
...props2
|
|
8110
8111
|
}, ref) => {
|
|
8111
8112
|
const absoluteFrame = useTimelinePosition();
|
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.388",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@happy-dom/global-registrator": "14.5.1",
|
|
31
31
|
"@types/dom-webcodecs": "0.1.11",
|
|
32
32
|
"happy-dom": "20.0.2",
|
|
33
|
-
"react": "19.2.
|
|
34
|
-
"react-dom": "19.2.
|
|
33
|
+
"react": "19.2.3",
|
|
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.388",
|
|
38
38
|
"eslint": "9.19.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateLoopDuration = void 0;
|
|
4
|
-
const calculateLoopDuration = ({ endAt, mediaDuration, playbackRate, startFrom, }) => {
|
|
5
|
-
let duration = mediaDuration;
|
|
6
|
-
// Account for endAt
|
|
7
|
-
if (typeof endAt !== 'undefined') {
|
|
8
|
-
duration = endAt;
|
|
9
|
-
}
|
|
10
|
-
// Account for startFrom
|
|
11
|
-
if (typeof startFrom !== 'undefined') {
|
|
12
|
-
duration -= startFrom;
|
|
13
|
-
}
|
|
14
|
-
const actualDuration = duration / playbackRate;
|
|
15
|
-
return Math.floor(actualDuration);
|
|
16
|
-
};
|
|
17
|
-
exports.calculateLoopDuration = calculateLoopDuration;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useAudioChannelIndex = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const useAudioChannelIndex = ({ ref, audioChannelIndex, }) => {
|
|
6
|
-
(0, react_1.useEffect)(() => {
|
|
7
|
-
var _a;
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
const audioChannels = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.audioTracks;
|
|
10
|
-
console.log({ audioChannels, audioChannelIndex });
|
|
11
|
-
}, [ref, audioChannelIndex]);
|
|
12
|
-
};
|
|
13
|
-
exports.useAudioChannelIndex = useAudioChannelIndex;
|