remotion 4.0.435 → 4.0.437

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.
@@ -30,7 +30,7 @@ const useBasicMediaInTimeline = ({ volume, mediaVolume, mediaType, src, displayN
30
30
  const videoConfig = (0, use_video_config_js_1.useVideoConfig)();
31
31
  const [initialVolume] = (0, react_1.useState)(() => volume);
32
32
  const mediaDuration = (0, calculate_media_duration_js_1.calculateMediaDuration)({
33
- mediaDurationInFrames: videoConfig.durationInFrames,
33
+ mediaDurationInFrames: videoConfig.durationInFrames + (trimBefore !== null && trimBefore !== void 0 ? trimBefore : 0),
34
34
  playbackRate,
35
35
  trimBefore,
36
36
  trimAfter,
@@ -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.435";
6
+ export declare const VERSION = "4.0.437";
@@ -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.435';
10
+ exports.VERSION = '4.0.437';
@@ -61,7 +61,7 @@ function truthy(value) {
61
61
  }
62
62
 
63
63
  // src/version.ts
64
- var VERSION = "4.0.435";
64
+ var VERSION = "4.0.437";
65
65
 
66
66
  // src/multiple-versions-warning.ts
67
67
  var checkMultipleRemotionVersions = () => {
@@ -3425,7 +3425,7 @@ var useBasicMediaInTimeline = ({
3425
3425
  const videoConfig = useVideoConfig();
3426
3426
  const [initialVolume] = useState10(() => volume);
3427
3427
  const mediaDuration = calculateMediaDuration({
3428
- mediaDurationInFrames: videoConfig.durationInFrames,
3428
+ mediaDurationInFrames: videoConfig.durationInFrames + (trimBefore ?? 0),
3429
3429
  playbackRate,
3430
3430
  trimBefore,
3431
3431
  trimAfter
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.435";
2
+ var VERSION = "4.0.437";
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.435",
6
+ "version": "4.0.437",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "react-dom": "19.2.3",
36
36
  "webpack": "5.105.0",
37
37
  "zod": "4.3.6",
38
- "@remotion/eslint-config-internal": "4.0.435",
38
+ "@remotion/eslint-config-internal": "4.0.437",
39
39
  "eslint": "9.19.0",
40
40
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
41
41
  },