Create live stream
Creates a livestream object.
Request body
Example request
{
"name": "Test live",
"playerId": "pl4f4ferf5erfr5zed4fsdd",
"restreams": [
{
"name": "YouTube",
"serverUrl": "rtmp://youtube.broadcast.example.com",
"streamKey": "dw-dew8-q6w9-k67w-1ws8"
},
{
"name": "Twitch",
"serverUrl": "rtmp://twitch.broadcast.example.com",
"streamKey": "dw-dew8-q6w9-k67w-1ws8"
}
]
}Response
Success
Example response
{
"streamKey": "dw-dew8-q6w9-k67w-1ws8",
"createdAt": "2020-01-31T10:17:47Z",
"assets": {
"thumbnail": "https://live.api.video/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,
"restreams": [
{
"streamKey": "dw-dew8-q6w9-k67w-1ws8",
"serverUrl": "rtmp://my.broadcast.example.com/app",
"name": "My restream server"
},
{
"streamKey": "dw-dew8-q6w9-k67w-1ws8",
"serverUrl": "rtmp://my.broadcast.example.com/app",
"name": "My restream server"
}
],
"liveStreamId": "li400mYKSgQ6xs7taUeSaEKr",
"name": "My Live Stream",
"playerId": "pl45d5vFFGrfdsdsd156dGhh",
"broadcasting": true,
"updatedAt": "2020-01-31T10:18:47Z"
}Changes
Changed in 5 of the 50 revisions of this API.1910
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
- ●
removed the request property
recordrequest-property-removed
- ●
removed the optional property
recordfrom the response with the200statusresponse-optional-property-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional request property
restreamsnew-optional-request-property
- ○
added the required property
restreamsto the response with the200statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
apiKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the required property
restreamsfrom the response with the200statusresponse-required-property-removed
- ●
the optional response header
X-RateLimit-Limitremoved for the status200optional-response-header-removed
- ●
the optional response header
X-RateLimit-Limitremoved for the status400optional-response-header-removed
- ●
the optional response header
X-RateLimit-Remainingremoved for the status200optional-response-header-removed
- ●
the optional response header
X-RateLimit-Remainingremoved for the status400optional-response-header-removed
- ●
the optional response header
X-RateLimit-Retry-Afterremoved for the status200optional-response-header-removed
- ●
the optional response header
X-RateLimit-Retry-Afterremoved for the status400optional-response-header-removed
- ●
removed the request property
restreamsrequest-property-removed
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
apiKeywas removed from the APIapi-security-removed
- ○
added the new optional request property
recordnew-optional-request-property
- ○
removed the non-success response with the status
429response-non-success-status-removed
- ○
added the optional property
recordto the response with the200statusresponse-optional-property-added
This revision also has 32 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 50 revisions, 1 has no diff computed.