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
Update live stream
UpdateLiveStream
Updates live stream’s basic fields (i.e. name)
curl --request PATCH \
--url https://api.mottostreaming.com/streaming/live_streams/v1/{live_stream_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"live_stream_id": "<string>",
"live_stream": {
"project_id": "<string>",
"name": "<string>",
"region": "REGION_UNSPECIFIED",
"rtmp_ingest_id": "<string>",
"simulcasts": [
{
"name": "<string>",
"rtmp_target": {
"url": "<string>",
"stream_key": "<string>"
},
"srt_target": {
"url": "<string>"
}
}
],
"accept_input": true,
"priority": "<string>"
},
"update_mask": "<string>"
}'
{
"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
Body
REGION_UNSPECIFIED
, REGION_AF
, REGION_AS
, REGION_EU
, REGION_NA
, REGION_OC
, REGION_SA
Name of the simulcast
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.
Response
REGION_UNSPECIFIED
, REGION_AF
, REGION_AS
, REGION_EU
, REGION_NA
, REGION_OC
, REGION_SA
Id of the simulcast
Name of the simulcast
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 PATCH \
--url https://api.mottostreaming.com/streaming/live_streams/v1/{live_stream_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"live_stream_id": "<string>",
"live_stream": {
"project_id": "<string>",
"name": "<string>",
"region": "REGION_UNSPECIFIED",
"rtmp_ingest_id": "<string>",
"simulcasts": [
{
"name": "<string>",
"rtmp_target": {
"url": "<string>",
"stream_key": "<string>"
},
"srt_target": {
"url": "<string>"
}
}
],
"accept_input": true,
"priority": "<string>"
},
"update_mask": "<string>"
}'
{
"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>"
}
}