Get Started
Studio API
- Introduction
- Streaming
- Live Streams
- Simulcasts
- Clips
- Videos
- Video Protection
- Configurations
- Assets
- CMS
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Live Streams
Get live stream
GetLiveStream
Returns information about the live stream.
GET
/
streaming
/
live_streams
/
v1
/
{live_stream_id}
curl --request GET \
--url https://api.mottostreaming.com/streaming/live_streams/v1/{live_stream_id} \
--header 'Authorization: Bearer <token>'
{
"live_stream": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"region": "REGION_UNSPECIFIED",
"rtmp_ingest_id": "<string>",
"video_id": "<string>",
"simulcasts": [
{
"id": "<string>",
"name": "<string>",
"status": "SIMULCAST_STATUS_UNSPECIFIED",
"rtmp_target": {
"url": "<string>",
"stream_key": "<string>"
},
"srt_target": {
"url": "<string>"
}
}
],
"accept_input": true,
"priority": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
OK
Available options:
REGION_UNSPECIFIED
, REGION_AF
, REGION_AS
, REGION_EU
, REGION_NA
, REGION_OC
, REGION_SA
Id of the simulcast
Name of the simulcast
Available options:
SIMULCAST_STATUS_UNSPECIFIED
, SIMULCAST_STATUS_IDLE
, SIMULCAST_STATUS_STARTING
, SIMULCAST_STATUS_ACTIVE
, SIMULCAST_STATUS_STOPPED
, SIMULCAST_STATUS_FAILED
Accept input from the input source.
If set to false, the live stream will not accept input from the input source
regardless of the input source's state (e.g., the input source is live).
If set to true, the live stream will accept input from the input source
if the input source is live.
By default, it is set to true
.
Priority of the live stream. This is used to sort the live streams and to discover the next live stream to run when multiple streams are connected to a shared ingest.
curl --request GET \
--url https://api.mottostreaming.com/streaming/live_streams/v1/{live_stream_id} \
--header 'Authorization: Bearer <token>'
{
"live_stream": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"region": "REGION_UNSPECIFIED",
"rtmp_ingest_id": "<string>",
"video_id": "<string>",
"simulcasts": [
{
"id": "<string>",
"name": "<string>",
"status": "SIMULCAST_STATUS_UNSPECIFIED",
"rtmp_target": {
"url": "<string>",
"stream_key": "<string>"
},
"srt_target": {
"url": "<string>"
}
}
],
"accept_input": true,
"priority": "<string>"
}
}