Skip to main content
This guide explains how to export a video from an existing project using the BlendDuck SDK.

Usage

To export a video, you’ll use the videos.export() method of the BlendDuck client.

Export Options

The ExportOptions object allows you to customize your video export:
  • resolution: The video resolution (e.g., “720p”, “1080p”, “4k”)
  • quality: The export quality (e.g., “low”, “medium”, “high”)
  • fps: The frames per second for the exported video

Export Status

The getExportStatus() method returns an ExportStatus object with the following properties:
  • status: The current status of the export (“processing”, “completed”, or “failed”)
  • progress: The export progress as a percentage (0-100)
  • url: The URL to download the exported video (available when status is “completed”)
  • error: Error message if the export failed

Error Handling

If there’s an issue with starting the export or with the API request, the method will throw an error. It’s good practice to wrap the call in a try-catch block to handle any potential errors gracefully.