Skip to content

🎥 Make videos programmatically with React

new privacy field

Jonny Burgerda8c43b8f94f
diff --git a/packages/docs/docs/lambda-changelog.md b/packages/docs/docs/lambda-changelog.md
index 64e73902d4..43f72beb75 100644
--- a/packages/docs/docs/lambda-changelog.md
+++ b/packages/docs/docs/lambda-changelog.md
@@ -16,8 +16,15 @@ Keep track of changes to the APIs of Remotion Lambda here.
## Unreleased
+- A new `privacy` field determines if the video will be public of private once it's rendered. No default - this field is mandatory
+- New `overallProgress` field in `getRenderProgress()` which can be used to display a progress bar to end users
- The `getSites()` method returns a property `sizeInBytes` which was previously `size`.
- The `deleteSite()` method returns a property `totalSizeInBytes` which was previously `totalSize`.
+- Lambda layers are now hosted in a dedicated AWS account
+- Documented `getSites()` and `deleteSite()` methods
+- Improved progress display for `npx remotion lambda` command
+- Now showing estimated cost for `npx remotion lambda` command
+- Using the `ANGLE` OpenGL renderer for Chrome instead of SwiftShader
## October 3rd, 2021
diff --git a/packages/docs/docs/rendervideoonlambda.md b/packages/docs/docs/rendervideoonlambda.md
index cf3a33a9fe..7b138f4aba 100644
--- a/packages/docs/docs/rendervideoonlambda.md
+++ b/packages/docs/docs/rendervideoonlambda.md
@@ -26,6 +26,7 @@ const {bucketName, renderId} = await renderVideoOnLambda({
codec: 'h264-mkv',
imageFormat: 'jpeg',
maxRetries: 3,
+ privacy: 'public'
})
```
@@ -37,6 +38,10 @@ An object with the following properties:
In which region your Lambda function is deployed. It's highly recommended that your Remotion site is also in the same region.
+### `privacy`
+
+Either `"public"` or `"private"`, determining whether the video can be seen by anyone after it's uploaded to the S3 bucket.
+
### `functionName`
The name of the deployed Lambda function.
diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.ts
index 4060465b49..0ddc8fe3e5 100644
--- a/packages/lambda/src/shared/constants.ts
+++ b/packages/lambda/src/shared/constants.ts
@@ -226,7 +226,7 @@ export type RenderMetadata = {
};
export type LambdaVersions =
- | '2021-10-06'
+ | '2021-10-07'
| '2021-10-03'
| '2021-10-01'
| '2021-09-15'
@@ -238,7 +238,7 @@ export type LambdaVersions =
| '2021-06-23'
| 'n/a';
-export const CURRENT_VERSION: LambdaVersions = '2021-10-06';
+export const CURRENT_VERSION: LambdaVersions = '2021-10-07';
export type PostRenderData = {
cost: {