Skip to content

🎥 Make videos programmatically with React

`@remotion/renderer`: Download the v3 shared-memory Chromium builds on all Linux platforms

Jonny Burgeraa907070e5ae
diff --git a/packages/renderer/src/browser/BrowserFetcher.ts b/packages/renderer/src/browser/BrowserFetcher.ts
index b54b1d0ebf..193092614a 100644
--- a/packages/renderer/src/browser/BrowserFetcher.ts
+++ b/packages/renderer/src/browser/BrowserFetcher.ts
@@ -97,10 +97,13 @@ export const getExpectedVersion = ({
// Remotion-patched builds get their own cache marker so an existing stock or
// older patched download of the same Chromium version is replaced once.
+ // Every default headless-shell download served from remotion.media is a v3
+ // build; the Playwright/Chrome for Testing fallbacks are stock Chromium.
if (
chromeMode === 'headless-shell' &&
- (platform === 'mac-arm64' ||
- (platform === 'linux-arm64' && isAmazonLinux2023()))
+ getChromeDownloadUrl({platform, version: null, chromeMode}).startsWith(
+ 'https://remotion.media/',
+ )
) {
return `${TESTED_VERSION}-remotion-v3`;
}
diff --git a/packages/renderer/src/browser/get-chrome-download-url.ts b/packages/renderer/src/browser/get-chrome-download-url.ts
index 0f1a92be6b..9e1bbba5be 100644
--- a/packages/renderer/src/browser/get-chrome-download-url.ts
+++ b/packages/renderer/src/browser/get-chrome-download-url.ts
@@ -123,7 +123,7 @@ export function getChromeDownloadUrl({
// Regular arm64 binary requires glibc 2.35+
if (canUseRemotionMediaBinaries()) {
- return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}.zip?clear`;
+ return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}-v3.zip?clear`;
}
// Fall back to Playwright for older glibc (non-Amazon Linux systems)
@@ -138,12 +138,12 @@ export function getChromeDownloadUrl({
// Amazon Linux 2023 needs a special build.
// This binary is compatible with older glibc (no 2.35 requirement).
if (isAmazonLinux2023() && platform === 'linux64' && !version) {
- return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip?clear`;
+ return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0-v3.zip?clear`;
}
if (platform === 'linux64' && version === null) {
if (canUseRemotionMediaBinaries()) {
- return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}.zip?clear`;
+ return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}-v3.zip?clear`;
}
// Fall back to Google's CDN for older glibc