remotion 4.0.392 → 4.0.394

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.
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.392";
6
+ export declare const VERSION = "4.0.394";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.392';
10
+ exports.VERSION = '4.0.394';
@@ -110,7 +110,7 @@ function truthy(value) {
110
110
  }
111
111
 
112
112
  // src/version.ts
113
- var VERSION = "4.0.392";
113
+ var VERSION = "4.0.394";
114
114
 
115
115
  // src/multiple-versions-warning.ts
116
116
  var checkMultipleRemotionVersions = () => {
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.392";
2
+ var VERSION = "4.0.394";
3
3
  export {
4
4
  VERSION
5
5
  };
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.392",
6
+ "version": "4.0.394",
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.392",
37
+ "@remotion/eslint-config-internal": "4.0.394",
38
38
  "eslint": "9.19.0"
39
39
  },
40
40
  "keywords": [
@@ -1,6 +0,0 @@
1
- export declare const calculateLoopDuration: ({ endAt, mediaDuration, playbackRate, startFrom, }: {
2
- mediaDuration: number;
3
- playbackRate: number;
4
- startFrom: number | undefined;
5
- endAt: number | undefined;
6
- }) => number;
@@ -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,4 +0,0 @@
1
- export declare const useAudioChannelIndex: ({ ref, audioChannelIndex, }: {
2
- ref: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
3
- audioChannelIndex: number;
4
- }) => void;
@@ -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;