@remotion/media 4.0.420 → 4.0.422

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.
@@ -1571,7 +1571,7 @@ var useMediaInTimeline = ({
1571
1571
  volume: volumes,
1572
1572
  showInTimeline: true,
1573
1573
  nonce,
1574
- startMediaFrom: 0 - startsAt,
1574
+ startMediaFrom: 0 - startsAt + (trimBefore ?? 0),
1575
1575
  doesVolumeChange,
1576
1576
  loopDisplay: undefined,
1577
1577
  playbackRate,
@@ -1607,7 +1607,8 @@ var useMediaInTimeline = ({
1607
1607
  startsAt,
1608
1608
  unregisterSequence,
1609
1609
  volumes,
1610
- frame
1610
+ frame,
1611
+ trimBefore
1611
1612
  ]);
1612
1613
  return {
1613
1614
  id: mediaId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/media",
3
- "version": "4.0.420",
3
+ "version": "4.0.422",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/esm/index.mjs",
@@ -23,14 +23,14 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "mediabunny": "1.29.0",
26
- "remotion": "4.0.420"
26
+ "remotion": "4.0.422"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.8.0",
30
30
  "react-dom": ">=16.8.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@remotion/eslint-config-internal": "4.0.420",
33
+ "@remotion/eslint-config-internal": "4.0.422",
34
34
  "@vitest/browser-webdriverio": "4.0.9",
35
35
  "eslint": "9.19.0",
36
36
  "react": "19.2.3",