Learn how to create clips from your livestream
startTime
aligns with or postdates the stream’s initiation, and
that the endTime
isn’t set in the future.hls.playingDate
, which can be used to get the browser’s current playhead. This
returns a Date object which is used similar to:
Program-Date-Time
for each segment when
parsing an HLS manifest. You can utilize Program-Date-Time
to create a
clipping user interface (UI) and generate the correct timestamps./api/asset/$ASSET_ID
APIasset.status
field is ready
.
asset.ready
event, you will receive a notification when the clip processing is complete. You
can use the assetId
received in the previous response to determine when your
clip is ready.
To determine if an asset you are polling or receiving as an event is a clip, you
can check the source
field. If the source
field contains a clip
type and
the relative session ID, then it is indeed a clip.
You can always fetch clips by stream using the
Clips for Livestream API:
playbackUrl
field in the asset gets populated when the
playback is ready, and the sourcePlayback
field is set to true.