Create an instant clip from on-going live stream. Instant clips are applicable in cases where there is no time to wait for the broadcast to be completed and recorded. For example, for quickly cutting highlights in sport events, or cutting an important moment in the news or live performance.
Instant clip becomes available for viewing in the following formats:
Clip lifetime: Instant clips are a copy of the stream, created from a live stream. They are stored in memory for a limited time, after which the clip ceases to exist and you will receive a 404 on the link. Limits that you should keep in mind:
expiration
parameter.start + duration
exact time. If you try to request it before this time, the response will be error code 425 “Too Early”.Cutting a clip from a source:
In order to use clips recording feature, DVR must be enabled for a stream: “dvr_enabled
: true”.
The DVR serves as a source for creating clips:
Getting permanent VOD:
To get permanent VOD version of a live clip use this parameter when making a request to create a clip: vod_required: true
.
Later, when the clip is ready, grab video_id
value from the response and query the video by regular GET /video/ method.
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Stream ID
Successful
The response is of type object
.