remotion 4.0.398 → 4.0.399
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/Img.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- 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/dist/cjs/Img.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type ImgProps = NativeImgProps & {
|
|
|
5
5
|
readonly pauseWhenLoading?: boolean;
|
|
6
6
|
readonly delayRenderRetries?: number;
|
|
7
7
|
readonly delayRenderTimeoutInMilliseconds?: number;
|
|
8
|
-
readonly onImageFrame?: (
|
|
8
|
+
readonly onImageFrame?: (imageElement: HTMLImageElement) => void;
|
|
9
9
|
readonly src: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const Img: React.ForwardRefExoticComponent<Omit<ImgProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
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.399",
|
|
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.399",
|
|
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;
|