Skip to content

🎥 Make videos programmatically with React

update

Jonny Burger0bb6bf9b9a9e
diff --git a/.vscode/settings.json b/.vscode/settings.json
index cca5b6e399..6f8408a0c1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,7 +9,7 @@
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[python]": {
- "editor.defaultFormatter": "ms-python.autopep8"
+ "editor.defaultFormatter": "ms-python.python"
},
"python.formatting.provider": "none",
"python.analysis.extraPaths": [
diff --git a/packages/example/testlambda.mjs b/packages/example/testlambda.mjs
index ee319ef477..2099d8897c 100644
--- a/packages/example/testlambda.mjs
+++ b/packages/example/testlambda.mjs
@@ -42,26 +42,4 @@ execSync(
}
);
-const functionName = execSync(`pnpm exec remotion lambda functions ls -q`);
-
-execSync(`php src/render.php`, {
- env: {
- // eslint-disable-next-line no-undef
- ...process.env,
- REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),
- REMOTION_APP_SERVE_URL: 'testbed-v6',
- },
- cwd: '../lambda-php-example',
- stdio: 'inherit',
-});
-execSync(`python testclient.py`, {
- env: {
- // eslint-disable-next-line no-undef
- ...process.env,
- REMOTION_APP_REGION: 'eu-central-1',
- REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),
- REMOTION_APP_SERVE_URL: 'testbed-v6',
- },
- cwd: '../lambda-python',
- stdio: 'inherit',
-});
+import './testlambdaintegrations.mjs';
diff --git a/packages/example/testlambdaintegrations.mjs b/packages/example/testlambdaintegrations.mjs
new file mode 100644
index 0000000000..101eac5104
--- /dev/null
+++ b/packages/example/testlambdaintegrations.mjs
@@ -0,0 +1,25 @@
+import {execSync} from 'child_process';
+
+const functionName = execSync(`pnpm exec remotion lambda functions ls -q`);
+
+execSync(`php src/render.php`, {
+ env: {
+ // eslint-disable-next-line no-undef
+ ...process.env,
+ REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),
+ REMOTION_APP_SERVE_URL: 'testbed-v6',
+ },
+ cwd: '../lambda-php-example',
+ stdio: 'inherit',
+});
+execSync(`python testclient.py`, {
+ env: {
+ // eslint-disable-next-line no-undef
+ ...process.env,
+ REMOTION_APP_REGION: 'eu-central-1',
+ REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),
+ REMOTION_APP_SERVE_URL: 'testbed-v6',
+ },
+ cwd: '../lambda-python',
+ stdio: 'inherit',
+});
diff --git a/packages/lambda-php-example/composer.lock b/packages/lambda-php-example/composer.lock
index 1e58109004..d7ac2e88d3 100644
--- a/packages/lambda-php-example/composer.lock
+++ b/packages/lambda-php-example/composer.lock
@@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ffb5b2fdeada4081119003d23235d314",
+ "content-hash": "fb93150b501c9c662ae75719a6817880",
"packages": [
{
"name": "aws/aws-crt-php",
- "version": "v1.2.1",
+ "version": "v1.2.2",
"source": {
"type": "git",
"url": "https://github.com/awslabs/aws-crt-php.git",
- "reference": "1926277fc71d253dfa820271ac5987bdb193ccf5"
+ "reference": "2f1dc7b7eda080498be96a4a6d683a41583030e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/1926277fc71d253dfa820271ac5987bdb193ccf5",
- "reference": "1926277fc71d253dfa820271ac5987bdb193ccf5",
+ "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/2f1dc7b7eda080498be96a4a6d683a41583030e9",
+ "reference": "2f1dc7b7eda080498be96a4a6d683a41583030e9",
"shasum": ""
},
"require": {
@@ -56,22 +56,22 @@
],
"support": {
"issues": "https://github.com/awslabs/aws-crt-php/issues",
- "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.1"
+ "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.2"
},
- "time": "2023-03-24T20:22:19+00:00"
+ "time": "2023-07-20T16:49:55+00:00"
},
{
"name": "aws/aws-sdk-php",
- "version": "3.271.1",
+ "version": "3.277.4",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
- "reference": "707552cfb1fa37e8e501d2c70afa9bc2e61104c0"
+ "reference": "9f36e76a3e1f8c7eba8cacbfa1d5f1257cd04241"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/707552cfb1fa37e8e501d2c70afa9bc2e61104c0",
- "reference": "707552cfb1fa37e8e501d2c70afa9bc2e61104c0",
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/9f36e76a3e1f8c7eba8cacbfa1d5f1257cd04241",
+ "reference": "9f36e76a3e1f8c7eba8cacbfa1d5f1257cd04241",
"shasum": ""
},
"require": {
@@ -151,9 +151,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
- "source": "https://github.com/aws/aws-sdk-php/tree/3.271.1"
+ "source": "https://github.com/aws/aws-sdk-php/tree/3.277.4"
},
- "time": "2023-05-24T18:20:35+00:00"
+ "time": "2023-07-28T22:10:53+00:00"
},
{
"name": "graham-campbell/result-type",
@@ -880,11 +880,11 @@
},
{
"name": "remotion/lambda",
- "version": "3.3.96",
+ "version": "4.0.14",
"dist": {
"type": "path",
"url": "../lambda-php",
- "reference": "35f4f068f71c3687fbe9e25c2b93cf86c7f850bc"
+ "reference": "e56d25ef51607b1c265b1984218d9d3f4c93a8bb"
},
"require": {
"aws/aws-sdk-php": "^3.269"
@@ -908,16 +908,16 @@
},
{
"name": "symfony/deprecation-contracts",
- "version": "v3.2.1",
+ "version": "v3.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e"
+ "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
- "reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
+ "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
"shasum": ""
},
"require": {
@@ -926,7 +926,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.3-dev"
+ "dev-main": "3.4-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -955,7 +955,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.1"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0"
},
"funding": [
{
@@ -971,7 +971,7 @@
"type": "tidelift"
}
],
- "time": "2023-03-01T10:25:55+00:00"
+ "time": "2023-05-23T14:45:45+00:00"
},
{
"name": "symfony/polyfill-ctype",