🎥 Make videos programmatically with React
rename stuff
Jonny Burger2d604342a03d
diff --git a/go.work b/go.workindex 12c68094cb..1f5c86d5ce 100644--- a/go.work+++ b/go.work@@ -1,5 +1,5 @@go 1.23-use packages/goclient+use packages/lambda-go-use packages/goclient-example+use packages/lambda-go-examplediff --git a/packages/compositor-darwin-arm64/compositor b/packages/compositor-darwin-arm64/compositorindex cfd91e3c59..6dce8d0b34 100755Binary files a/packages/compositor-darwin-arm64/compositor and b/packages/compositor-darwin-arm64/compositor differdiff --git a/packages/docs/docs/lambda/go.md b/packages/docs/docs/lambda/go.mdindex 07f7320abd..d396c209b9 100644--- a/packages/docs/docs/lambda/go.md+++ b/packages/docs/docs/lambda/go.md@@ -5,16 +5,11 @@ sidebar_label: Rendering from Gocrumb: "@remotion/lambda"----To trigger a Lambda render using Go, you will need to utilize remotion [goclient](https://github.com/remotion-dev/remotion/blob/main/packages/goclient/goclient.go) package. Note of the following:+To trigger a Lambda render using Go, you can use the Remotion Lambda Go client. Note the following:- You first need to [complete the Lambda setup](/docs/lambda/setup).- Sending large input props (>200KB) is not supported with Go at the moment.--:::warning-The go package utilized on this example is in early stage of development.-:::-```go title="main.go"package main@@ -25,7 +20,7 @@ import ("github.com/go-playground/validator/v10""github.com/joho/godotenv"- "github.com/remotion-dev/remotion/packages/goclient"+ "github.com/remotion-dev/remotion/packages/lambda-go")type ValidationError struct {@@ -58,7 +53,7 @@ func main() {region := os.Getenv("REMOTION_APP_REGION")// Set parameters for render- renderInputRequest := goclient.RemotionOptions{+ renderInputRequest := remotionlambda.RemotionOptions{ServeUrl: serveUrl,FunctionName: functionName,Region: region,@@ -71,7 +66,7 @@ func main() {}// Execute the render process- renderResponse, renderError := goclient.RenderMediaOnLambda(renderInputRequest)+ renderResponse, renderError := remotionlambda.RenderMediaOnLambda(renderInputRequest)// Check if there are validation errorsif renderError != nil {@@ -94,14 +89,14 @@ func main() {fmt.Printf("bucketName: %s\nRenderId: %s\n", renderResponse.BucketName, renderResponse.RenderId)// Render Progress request- renderProgressInputRequest := goclient.RenderConfig{+ renderProgressInputRequest := remotionlambda.RenderConfig{FunctionName: functionName,Region: region,RenderId: renderResponse.RenderId,BucketName: renderResponse.BucketName,}// Execute getting the render progress- renderProgressResponse, renderProgressError := goclient.GetRenderProgress(renderProgressInputRequest)+ renderProgressResponse, renderProgressError := remotionlambda.GetRenderProgress(renderProgressInputRequest)// Check if we have errorif renderProgressError != nil {@@ -117,9 +112,7 @@ func main() {## Reference applications- The project utilizes [remotion-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/remotion-app), ensure that it is already deployed on your AWS Account.--+The project utilizes [remotion-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/remotion-app), ensure that it is already deployed on your AWS Account.## See alsodiff --git a/packages/goclient/version.go b/packages/goclient/version.godeleted file mode 100644index fd473fb60e..0000000000--- a/packages/goclient/version.go+++ /dev/null@@ -1,3 +0,0 @@-package goclient;--const VERSION = "3.3.88"\ No newline at end of filediff --git a/packages/it-tests/src/lambda/go-package.test.ts b/packages/it-tests/src/lambda/go-package.test.tsindex af23127ca4..d92e1c8eab 100644--- a/packages/it-tests/src/lambda/go-package.test.ts+++ b/packages/it-tests/src/lambda/go-package.test.ts@@ -14,16 +14,16 @@ test("Set the right version for gotest", () => {const version = referenceVersionJson.version;expect(typeof version).toBe("string");- const VERSION = `package goclient;\n\nconst VERSION = "${version}"`;+ const VERSION = `package remotionlambda;\n\nconst VERSION = "${version}"`;writeFileSync(- path.join(process.cwd(), "..", "goclient", "version.go"),+ path.join(process.cwd(), "..", "lambda-go", "version.go"),VERSION);});test("Go package should create the same payload as normal Lambda package", async () => {const goOutput = execSync("go test", {- cwd: path.join(process.cwd(), "..", "goclient"),+ cwd: path.join(process.cwd(), "..", "lambda-go"),});const firstLine = goOutput.toString().split("\n")[0];const parsed = JSON.parse(firstLine);diff --git a/packages/goclient-example/.env.example b/packages/lambda-go-example/.env.examplesimilarity index 100%rename from packages/goclient-example/.env.examplerename to packages/lambda-go-example/.env.examplediff --git a/packages/goclient-example/.gitignore b/packages/lambda-go-example/.gitignoresimilarity index 91%rename from packages/goclient-example/.gitignorerename to packages/lambda-go-example/.gitignoreindex 979f04e226..483269fca8 100644--- a/packages/goclient-example/.gitignore+++ b/packages/lambda-go-example/.gitignore@@ -11,4 +11,4 @@# Output of the go coverage tool, specifically when used with LiteIDE*.out-goclient-example+lambdago-examplediff --git a/packages/goclient-example/go.mod b/packages/lambda-go-example/go.modsimilarity index 100%rename from packages/goclient-example/go.modrename to packages/lambda-go-example/go.moddiff --git a/packages/goclient-example/go.sum b/packages/lambda-go-example/go.sumsimilarity index 100%rename from packages/goclient-example/go.sumrename to packages/lambda-go-example/go.sumdiff --git a/packages/goclient-example/main.go b/packages/lambda-go-example/main.gosimilarity index 89%rename from packages/goclient-example/main.gorename to packages/lambda-go-example/main.goindex 10deba77bd..14023b80c8 100755--- a/packages/goclient-example/main.go+++ b/packages/lambda-go-example/main.go@@ -5,7 +5,7 @@ import ("log""os"- "goclient"+ "lambdago""github.com/go-playground/validator/v10""github.com/joho/godotenv"@@ -41,7 +41,7 @@ func main() {region := os.Getenv("REMOTION_APP_REGION")// Set parameters for render- renderInputRequest := goclient.RemotionOptions{+ renderInputRequest := lambdago.RemotionOptions{ServeUrl: serveUrl,FunctionName: functionName,Region: region,@@ -54,7 +54,7 @@ func main() {}// Execute the render process- renderResponse, renderError := goclient.RenderMediaOnLambda(renderInputRequest)+ renderResponse, renderError := lambdago.RenderMediaOnLambda(renderInputRequest)// Check if there are validation errorsif renderError != nil {@@ -77,14 +77,14 @@ func main() {fmt.Printf("bucketName: %s\nRenderId: %s\n", renderResponse.BucketName, renderResponse.RenderId)// Render Progress request- renderProgressInputRequest := goclient.RenderConfig{+ renderProgressInputRequest := lambdago.RenderConfig{FunctionName: functionName,Region: region,RenderId: renderResponse.RenderId,BucketName: renderResponse.BucketName,}// Execute getting the render progress- renderProgressResponse, renderProgressError := goclient.GetRenderProgress(renderProgressInputRequest)+ renderProgressResponse, renderProgressError := lambdago.GetRenderProgress(renderProgressInputRequest)// Check if we have errorif renderProgressError != nil {diff --git a/packages/goclient/.gitignore b/packages/lambda-go/.gitignoresimilarity index 100%rename from packages/goclient/.gitignorerename to packages/lambda-go/.gitignorediff --git a/packages/goclient/go.mod b/packages/lambda-go/go.modsimilarity index 95%rename from packages/goclient/go.modrename to packages/lambda-go/go.modindex 942d0c9dd6..aca41003cb 100644--- a/packages/goclient/go.mod+++ b/packages/lambda-go/go.mod@@ -1,4 +1,4 @@-module goclient+module remotionlambdago 1.20diff --git a/packages/goclient/go.sum b/packages/lambda-go/go.sumsimilarity index 100%rename from packages/goclient/go.sumrename to packages/lambda-go/go.sumdiff --git a/packages/goclient/goclient.go b/packages/lambda-go/goclient.gosimilarity index 91%rename from packages/goclient/goclient.gorename to packages/lambda-go/goclient.goindex 25da33c61f..323902bcaf 100644--- a/packages/goclient/goclient.go+++ b/packages/lambda-go/goclient.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdafunc RenderMediaOnLambda(input RemotionOptions) (*RemotionRenderResponse, error) {return invokeRenderLambda(input)diff --git a/packages/goclient/goclient_test.go b/packages/lambda-go/goclient_test.gosimilarity index 95%rename from packages/goclient/goclient_test.gorename to packages/lambda-go/goclient_test.goindex 9ae0c948e9..7abd740cfa 100644--- a/packages/goclient/goclient_test.go+++ b/packages/lambda-go/goclient_test.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdaimport ("encoding/json"diff --git a/packages/goclient/internalops.go b/packages/lambda-go/internalops.gosimilarity index 99%rename from packages/goclient/internalops.gorename to packages/lambda-go/internalops.goindex c16104f699..faeb587cde 100644--- a/packages/goclient/internalops.go+++ b/packages/lambda-go/internalops.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdaimport ("log"diff --git a/packages/goclient/invocations.go b/packages/lambda-go/invocations.gosimilarity index 99%rename from packages/goclient/invocations.gorename to packages/lambda-go/invocations.goindex 1fb2ee65df..6320255735 100644--- a/packages/goclient/invocations.go+++ b/packages/lambda-go/invocations.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdaimport ("encoding/json"diff --git a/packages/goclient/models.go b/packages/lambda-go/models.gosimilarity index 99%rename from packages/goclient/models.gorename to packages/lambda-go/models.goindex 959cf203d3..5032252056 100644--- a/packages/goclient/models.go+++ b/packages/lambda-go/models.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdatype RemotionOptions struct {ServeUrl string `json:"serveUrl" validate:"required"`diff --git a/packages/goclient/utils.go b/packages/lambda-go/utils.gosimilarity index 97%rename from packages/goclient/utils.gorename to packages/lambda-go/utils.goindex 17f6a05d0f..098b71d45b 100644--- a/packages/goclient/utils.go+++ b/packages/lambda-go/utils.go@@ -1,4 +1,4 @@-package goclient+package remotionlambdaimport ("encoding/json"diff --git a/packages/lambda-go/version.go b/packages/lambda-go/version.gonew file mode 100644index 0000000000..26473ff874--- /dev/null+++ b/packages/lambda-go/version.go@@ -0,0 +1,3 @@+package remotionlambda;++const VERSION = "3.3.88"