Stream
Create a clip
POST
/
clip
Authorization
Body
curl --request POST \
--url https://livepeer.studio/api/clip \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"endTime": 123,
"name": "<string>",
"playbackId": "<string>",
"sessionId": "<string>",
"startTime": 123
}'
{
"asset": {
"createdAt": 1587667174725,
"creatorId": {
"type": "unverified",
"value": "<string>"
},
"downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video",
"hash": [],
"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
"name": "filename.mp4",
"playbackId": "eaw4nk06ts2d0mzb",
"playbackPolicy": {
"type": "public"
},
"playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8",
"size": 84934509,
"source": {
"type": "url",
"url": "<string>"
},
"status": {
"phase": "uploading",
"updatedAt": 1587667174725
},
"storage": {},
"type": "video",
"videoSpec": {}
},
"task": {
"id": "34d7618e-fd42-4798-acf5-19504616a11e"
}
}
Authorizations
Authorization
string
headerrequiredBearer api-key
Body
application/json
endTime
number
End time of the clip in milliseconds
name
string
Name of the clip
playbackId
string
requiredPlayback ID of the stream or asset to clip
sessionId
string
Session ID of the stream to clip
startTime
number
requiredStart time of the clip in milliseconds
Response
200 - application/json
asset
object
requiredtask
object
requiredWas this page helpful?
curl --request POST \
--url https://livepeer.studio/api/clip \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"endTime": 123,
"name": "<string>",
"playbackId": "<string>",
"sessionId": "<string>",
"startTime": 123
}'
{
"asset": {
"createdAt": 1587667174725,
"creatorId": {
"type": "unverified",
"value": "<string>"
},
"downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video",
"hash": [],
"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
"name": "filename.mp4",
"playbackId": "eaw4nk06ts2d0mzb",
"playbackPolicy": {
"type": "public"
},
"playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8",
"size": 84934509,
"source": {
"type": "url",
"url": "<string>"
},
"status": {
"phase": "uploading",
"updatedAt": 1587667174725
},
"storage": {},
"type": "video",
"videoSpec": {}
},
"task": {
"id": "34d7618e-fd42-4798-acf5-19504616a11e"
}
}