UpdateMediaLiveInput
Update a media live input.
Operation description
-
Invoke this API to update a media live input.
-
You can update an input only when it is not attached to any media live channel. Inputs that are already attached to a channel cannot be updated.
Queries per second (QPS) limit
The QPS limit for this API is 50 queries per second per user. If the limit is exceeded, Rate Limiting will be applied to your API calls, which may impact your business. Make sure to call this API appropriately.
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 name of the input. Letters, digits, hyphens (-), and underscores (_) are supported. It can be up to 64 characters in length. |
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. This parameter is required for PUSH inputs. It can be up to 255 characters in length. |
mystream |
| SrtPassphrase |
string |
No |
The SRT encryption configuration. The password for the SRT stream must consist of 10 to 79 visible ASCII characters. Optional when Type is SRT_PUSH or SRT_PULL. If the encryption configuration is not empty, all SRT clients must use the correct password to publish or playback streams. Otherwise, the SRT connection will be 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 |
Encryption configuration for SRT—the key length of the SRT stream. Valid values: 0, 16, 24, 32. Optional when Type is SRT_PUSH or SRT_PULL. |
16 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| 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.