Clip a Livestream
A 3-step recipe with Livepeer. We can help you get access.
Recipe · 3 steps
Clip a Livestream
with Livepeer
Create a clip, poll its task, then read the resulting clip asset.
- Create a clip over the supplied playback ID and timestamp window. Returns the clip asset and its processing task.
- Poll the clip task by ID. Branch to reading the asset when the task is completed and end on failure; otherwise keep polling.
- Read the finished clip asset to surface its playback ID and URL.
What you'll need to have ready
- authToken: Livepeer API key used as a Bearer token.
- playbackId: Playback ID of the live stream or recording to clip.
- startTime: Clip start timestamp in Unix milliseconds.
- endTime: Clip end timestamp in Unix milliseconds.
- name: Friendly name for the clip.
For your developer
Arazzo workflow livepeer:clip-livestream, 3 operations: createClip → getTask → getAsset. Specs on APIs.io.