@remotion/renderer 4.0.225 → 4.0.226
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/ensure-browser.mjs +14 -7
- package/package.json +10 -10
package/ensure-browser.mjs
CHANGED
|
@@ -2887,6 +2887,7 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
|
|
|
2887
2887
|
}, 20000);
|
|
2888
2888
|
};
|
|
2889
2889
|
refreshTimeout();
|
|
2890
|
+
let finishEventSent = false;
|
|
2890
2891
|
readFile(url).then((res) => {
|
|
2891
2892
|
const contentDisposition = res.headers["content-disposition"] ?? null;
|
|
2892
2893
|
const contentType = res.headers["content-type"] ?? null;
|
|
@@ -2900,11 +2901,13 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
|
|
|
2900
2901
|
if (rejected) {
|
|
2901
2902
|
return;
|
|
2902
2903
|
}
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2904
|
+
if (!finishEventSent) {
|
|
2905
|
+
onProgress?.({
|
|
2906
|
+
downloaded,
|
|
2907
|
+
percent: 1,
|
|
2908
|
+
totalSize: downloaded
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2908
2911
|
refreshTimeout();
|
|
2909
2912
|
return resolveAndFlag({ sizeInBytes: downloaded, to });
|
|
2910
2913
|
});
|
|
@@ -2915,11 +2918,15 @@ var downloadFileWithoutRetries = ({ onProgress, url, to: toFn }) => {
|
|
|
2915
2918
|
refreshTimeout();
|
|
2916
2919
|
downloaded += d.length;
|
|
2917
2920
|
refreshTimeout();
|
|
2921
|
+
const percent = totalSize === null ? null : downloaded / totalSize;
|
|
2918
2922
|
onProgress?.({
|
|
2919
2923
|
downloaded,
|
|
2920
|
-
percent
|
|
2924
|
+
percent,
|
|
2921
2925
|
totalSize
|
|
2922
2926
|
});
|
|
2927
|
+
if (percent === 1) {
|
|
2928
|
+
finishEventSent = true;
|
|
2929
|
+
}
|
|
2923
2930
|
});
|
|
2924
2931
|
res.on("close", () => {
|
|
2925
2932
|
if (totalSize !== null && downloaded !== totalSize) {
|
|
@@ -3164,7 +3171,7 @@ var defaultBrowserDownloadProgress = ({
|
|
|
3164
3171
|
let lastProgress = 0;
|
|
3165
3172
|
return {
|
|
3166
3173
|
onProgress: (progress) => {
|
|
3167
|
-
if (progress.downloadedBytes > lastProgress + 1e7) {
|
|
3174
|
+
if (progress.downloadedBytes > lastProgress + 1e7 || progress.percent === 1) {
|
|
3168
3175
|
lastProgress = progress.downloadedBytes;
|
|
3169
3176
|
Log.info({ indent, logLevel }, `Downloading Chrome Headless Shell - ${toMegabytes(progress.downloadedBytes)}/${toMegabytes(progress.totalSizeInBytes)}`);
|
|
3170
3177
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.226",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.226",
|
|
22
|
+
"@remotion/streaming": "4.0.226"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@types/ws": "8.5.10"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
38
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
39
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
40
|
-
"@remotion/compositor-linux-x64-
|
|
41
|
-
"@remotion/compositor-
|
|
42
|
-
"@remotion/compositor-
|
|
43
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
37
|
+
"@remotion/compositor-darwin-arm64": "4.0.226",
|
|
38
|
+
"@remotion/compositor-darwin-x64": "4.0.226",
|
|
39
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.226",
|
|
40
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.226",
|
|
41
|
+
"@remotion/compositor-linux-x64-musl": "4.0.226",
|
|
42
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.226",
|
|
43
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.226"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"remotion",
|