Live Streams
Create live stream
A live stream will give you the 'connection point' to RTMP your video stream to api.video.
It will also give you the details for viewers to watch the same livestream.
The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer.
See our Live Stream Tutorial for a walkthrough of this API with OBS.
Your RTMP endpoint for the livestream is rtmp://broadcast.api.video/s/{streamKey}
Tutorials that create live streams.
post/live-streams
Request body
Example request
{
"name": "Test live",
"record": true,
"playerId": "pl4f4ferf5erfr5zed4fsdd"
}Response
Success
Example response
{
"streamKey": "cc1b4df0-d1c5-4064-a8f9-9f0368385135",
"createdAt": "2020-01-31T10:17:47Z",
"assets": {
"thumbnail": "https://cdn.api.video/live/li400mYKSgQ6xs7taUeSaEKr/thumbnail.jpg",
"iframe": "<iframe src=\\\"https://embed.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5\\\" width=\\\"100%\\\" height=\\\"100%\\\" frameborder=\\\"0\\\" scrolling=\\\"no\\\" allowfullscreen=\\\"\\\"></iframe>",
"hls": "https://live.api.video/li4pqNqGUkhKfWcBGpZVLRY5.m3u8",
"player": "https://embed.api.video/live/li400mYKSgQ6xs7taUeSaEKr"
},
"public": true,
"liveStreamId": "li400mYKSgQ6xs7taUeSaEKr",
"record": true,
"name": "My Live Stream",
"playerId": "pl45d5vFFGrfdsdsd156dGhh",
"broadcasting": true,
"updatedAt": "2020-01-31T10:18:47Z"
}