Chapter 552: renderMediaOnCloudrun()
Core Idea
<ExperimentalBadge> <p> Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.
Key Concepts
- Example
- Arguments
- cloudRunUrl?
- serviceName?
- region
- serveUrl
- composition
- codec
Code Examples
const result = await renderMediaOnCloudrun({
region: 'us-east1',
serviceName: 'remotion-render-bds9aab',
composition: 'MyVideo',
serveUrl: 'https://storage.googleapis.com/remotioncloudrun-123asd321/sites/abcdefgh',
codec: 'h264',
});
if (result.type === 'success') {
console.log(result.bucketName);
console.log(result.renderId);
}
- What it demonstrates: Usage pattern for renderMediaOnCloudrun() from the official docs.
Key Takeaways
- Understand example when working with renderMediaOnCloudrun().
- Understand arguments when working with renderMediaOnCloudrun().
- Understand cloudrunurl? when working with renderMediaOnCloudrun().
- Understand servicename? when working with renderMediaOnCloudrun().
- Understand region when working with renderMediaOnCloudrun().
Connects To
- api: related page in the Cloud Run (@remotion/cloudrun) section.
- Checklist: related page in the Cloud Run (@remotion/cloudrun) section.
- cli: related page in the Cloud Run (@remotion/cloudrun) section.