Capítulo 552 de 988

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

  1. Understand example when working with renderMediaOnCloudrun().
  2. Understand arguments when working with renderMediaOnCloudrun().
  3. Understand cloudrunurl? when working with renderMediaOnCloudrun().
  4. Understand servicename? when working with renderMediaOnCloudrun().
  5. 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.