Update a media live input.
Operation description
-
Updates a media live input.
-
You can update an input only when it is not attached to any media live channel.
Queries per second (QPS) limit
The QPS limit for this API is 50 calls per second per user. Exceeding this limit triggers rate limiting, which may affect your business.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:UpdateMediaLiveInput |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InputId |
string |
Yes |
The ID of the input. |
SEGK5KA6KYKAWQQH |
| Name |
string |
Yes |
The input name. Supports letters, digits, hyphens (-), and underscores (_). Maximum length: 64 characters. |
myinput |
| SecurityGroupIds |
array |
No |
The IDs of the security groups to be associated with the input. This parameter is required for PUSH inputs. |
["G6G4X5T4SZYPSTT5"] |
|
string |
No |
The ID of the security group to be associated. |
G6G4X5T4SZYPSTT5 |
|
| InputSettings |
array<object> |
Yes |
The input settings. An input can have up to two sources: primary and backup sources. |
|
|
object |
No |
|||
| FlowId |
string |
No |
The ID of the flow from MediaConnect. This parameter is required when Type is set to MEDIA_CONNECT. |
******81-9693-40dc-bbab-db5e49****** |
| SourceUrl |
string |
No |
The source URL from which the stream is pulled. This parameter is required for PULL inputs. |
rtmp://domain/app/stream |
| StreamName |
string |
No |
The name of the pushed stream. Required for PUSH inputs. Maximum length: 255 characters. |
mystream |
| SrtPassphrase |
string |
No |
The passphrase for SRT stream encryption. Must be 10 to 79 visible ASCII characters. Optional when Type is SRT_PUSH or SRT_PULL. When set, all SRT clients must use the correct passphrase to publish or play back streams. Otherwise, the connection is denied. |
srtencryption |
| SrtMaxBitrate |
integer |
No |
Maximum bitrate of the SRT stream, in bps. Valid range: [100, 100000000]. Optional when Type is SRT_PUSH or SRT_PULL. |
3000000 |
| FlowOutputName |
string |
No |
The output name of the MediaConnect flow. This parameter is required when Type is set to MEDIA_CONNECT. |
myFlowOutputName |
| SrtLatency |
integer |
No |
Latency of the SRT stream, in ms. Valid range: [100, 10000]. Optional when Type is SRT_PUSH or SRT_PULL. |
1000 |
| SrtPbKeyLen |
integer |
No |
The key length for SRT stream encryption. Valid values: 0, 16, 24, 32. Optional when Type is SRT_PUSH or SRT_PULL. |
16 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
******3B-0E1A-586A-AC29-742247****** |
Examples
Success response
JSON format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.