🎥 Make videos programmatically with React
renderstillonlambda
Jonny Burger45598ed1e295
diff --git a/packages/cloudrun/src/functions/helpers/get-download-behavior-setting.ts b/packages/cloudrun/src/functions/helpers/get-download-behavior-setting.tsindex 4acbf3b924..3761d6dafa 100644--- a/packages/cloudrun/src/functions/helpers/get-download-behavior-setting.ts+++ b/packages/cloudrun/src/functions/helpers/get-download-behavior-setting.ts@@ -44,17 +44,17 @@ export const getDownloadBehaviorSetting = (}if (downloadBehavior.fileName === null) {- return {'content-disposition': `attachment`};+ return {contentDisposition: `attachment`};}const {containsHex} = includesHexOfUnsafeChar(downloadBehavior.fileName);if (containsHex) {return {- 'content-disposition': `attachment; filename="${downloadBehavior.fileName}"`,+ contentDisposition: `attachment; filename="${downloadBehavior.fileName}"`,};}return {- 'content-disposition': `attachment; filename="${encodeURIComponent(downloadBehavior.fileName)}"`,+ contentDisposition: `attachment; filename="${encodeURIComponent(downloadBehavior.fileName)}"`,};};diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdxindex c538851b25..746dd27938 100644--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx@@ -45,7 +45,7 @@ if (result.type === "success") {```:::note-Import from [`@remotion/cloudrun/client`](/docs/cloudrun/light-client) to not import the whole renderer, which cannot be bundled.+Import from [`@remotion/cloudrun/client`](/docs/cloudrun/light-client) to not load the whole renderer, which cannot be bundled.:::## Arguments@@ -202,6 +202,18 @@ _optional_<Options id="number-of-gif-loops" />+_optional, available since v3.1.5_++How the output file should behave when accessed through the S3 output link in the browser.+Either:++### `downloadBehavior?`<AvailableFrom v="4.0.176"/>++How the output file should behave when accessed through the Cloud Storage output link in the browser.++- `{"type": "play-in-browser"}` - the default. The video will play in the browser.+- `{"type": "download", fileName: null}` or `{"type": "download", fileName: "download.mp4"}` - a `Content-Disposition` header will be added which makes the browser download the file. You can optionally override the filename.+### `frameRange?`_optional_diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdxindex 7d18ff7235..33dae4bf17 100644--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx@@ -6,7 +6,14 @@ crumb: "Cloud Run API"---<ExperimentalBadge>-<p>Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.</p>+ <p>+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs+ may change in any version and documentation is not yet finished. See the{" "}+ <a href="https://remotion.dev/changelog">+ changelog to stay up to date with breaking changes+ </a>+ .+ </p></ExperimentalBadge>Kicks off a still rendering process on Remotion Cloud Run.@@ -38,7 +45,7 @@ if (result.type === "success") {```:::note-Import from [`@remotion/cloudrun/client`](/docs/cloudrun/light-client) to not import the whole renderer, which cannot be bundled.+Import from [`@remotion/cloudrun/client`](/docs/cloudrun/light-client) to not load the whole renderer, which cannot be bundled.:::## Arguments@@ -87,6 +94,13 @@ One of:- `"public"` (_default_): The rendered still is publicly accessible under the Cloud Storage URL.- `"private"`: The rendered still is not publicly available, but is available within the GCP project to those with the correct permissions.+### `downloadBehavior?`<AvailableFrom v="4.0.176"/>++How the output file should behave when accessed through the Cloud Storage output link in the browser.++- `{"type": "play-in-browser"}` - the default. The video will play in the browser.+- `{"type": "download", fileName: null}` or `{"type": "download", fileName: "download.mp4"}` - a `Content-Disposition` header will be added which makes the browser download the file. You can optionally override the filename.+### `forceBucketName?`_optional_@@ -143,7 +157,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.#### `gl`-<Options id="gl" />+<Options id="gl" />### `forceWidth?`@@ -159,7 +173,7 @@ Overrides default composition height.### `logLevel?`-<Options id="log"/>+<Options id="log" />### `outName?`