🎥 Make videos programmatically with React
don't download if compressed
Jonny Burger7710be9db640
diff --git a/packages/renderer/src/assets/download-and-map-assets-to-file.ts b/packages/renderer/src/assets/download-and-map-assets-to-file.tsindex 65c9a1fc83..f8e71d118d 100644--- a/packages/renderer/src/assets/download-and-map-assets-to-file.ts+++ b/packages/renderer/src/assets/download-and-map-assets-to-file.ts@@ -5,6 +5,7 @@ import path from 'path';import {Internals, random, TAsset} from 'remotion';import sanitizeFilename from 'sanitize-filename';+import {SrcAlphaFactor} from 'three';const isDownloadingMap: {[key: string]: boolean} = {};const hasBeenDownloadedMap: {[key: string]: boolean} = {};@@ -192,7 +193,10 @@ export const downloadAndMapAssetsToFileUrl = async ({webpackBundle,});- if (localhostAsset.isRemote) {+ if (+ localhostAsset.isRemote &&+ !Internals.AssetCompression.isAssetCompressed(newSrc)+ ) {await downloadAsset(localhostAsset.src, newSrc, onDownload);}