@remotion/media 4.0.473 → 4.0.474
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/esm/index.mjs +6 -1
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -2992,7 +2992,12 @@ var makeKeyframeBank = async ({
|
|
|
2992
2992
|
}
|
|
2993
2993
|
const roundedTimestamp = roundTo4Digits(timestamp);
|
|
2994
2994
|
const firstFrameTimestamp = roundTo4Digits(frameTimestamps[0]);
|
|
2995
|
+
const range = getRangeOfTimestamps();
|
|
2996
|
+
if (!range) {
|
|
2997
|
+
return false;
|
|
2998
|
+
}
|
|
2995
2999
|
const lastFrameTimestamp = roundTo4Digits(frameTimestamps[frameTimestamps.length - 1]);
|
|
3000
|
+
const lastFrameEndTimestamp = roundTo4Digits(range.lastTimestamp);
|
|
2996
3001
|
if (hasReachedEndOfVideo && roundedTimestamp > lastFrameTimestamp) {
|
|
2997
3002
|
return true;
|
|
2998
3003
|
}
|
|
@@ -3001,7 +3006,7 @@ var makeKeyframeBank = async ({
|
|
|
3001
3006
|
const firstFrameDoesSatisfy = firstFrameIsInitialFrame && roundedTimestamp >= initialTimestampRequest;
|
|
3002
3007
|
return firstFrameDoesSatisfy;
|
|
3003
3008
|
}
|
|
3004
|
-
if (roundedTimestamp - BIGGEST_ALLOWED_JUMP_FORWARD_SECONDS >
|
|
3009
|
+
if (roundedTimestamp - BIGGEST_ALLOWED_JUMP_FORWARD_SECONDS > lastFrameEndTimestamp) {
|
|
3005
3010
|
return false;
|
|
3006
3011
|
}
|
|
3007
3012
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.474",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"mediabunny": "1.45.0",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.474",
|
|
27
27
|
"zod": "4.3.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": ">=16.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.474",
|
|
35
35
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
37
|
"react": "19.2.3",
|