Upload and Process an Asset
A 3-step recipe with Livepeer. We can help you get access.
Recipe · 3 steps
Upload and Process an Asset
with Livepeer
Request an upload URL, then poll the asset until it is ready or failed.
- Request a direct upload URL for the asset. The response includes the direct PUT URL, the Tus resumable endpoint, the placeholder asset, and the processing task.
- Poll the asset by ID and inspect its processing phase. Branch to completion when the asset is ready and to the failure branch when it has failed; otherwise keep polling.
- Once the asset is ready, resolve its playback info so the caller has the VOD playback sources.
What you'll need to have ready
- authToken: Livepeer API key used as a Bearer token.
- name: Name of the asset to create (e.g. "filename.mp4").
- staticMp4: Whether to generate static MP4 renditions for the asset.
For your developer
Arazzo workflow livepeer-com:upload-and-process-asset, 3 operations: requestUpload → getAsset → getPlaybackInfo. Specs on APIs.io.