Create live stream
POST
/live-streams
Live
Tutorials that create live streams.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ws.api.video/live-streams' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test live",
"playerId": "pl4f4ferf5erfr5zed4fsdd",
"record": true
}'
Response Response Example
200 - response
{
"assets": {
"hls": "https://live.api.video/li4pqNqGUkhKfWcBGpZVLRY5.m3u8",
"iframe": "<iframe src=\"https://embed.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>",
"player": "https://embed.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5",
"thumbnail": "https://cdn.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5/thumbnail.jpg"
},
"broadcasting": false,
"createdAt": "2020-07-29T10:45:35.000Z",
"liveStreamId": "li4pqNqGUkhKfWcBGpZVLRY5",
"name": "Live From New York",
"public": true,
"record": true,
"streamKey": "cc1b4df0-d1c5-4064-a8f9-9f0368385135",
"updatedAt": "2020-07-29T10:45:35.000Z"
}
Request
Body Params application/json
Responses
Modified at 2023-08-15 05:52:15