CreateMediaLiveInput
Create a live media input.
Operation description
Create a live media input.
Queries per second (QPS) limit
The queries per second (QPS) limit for this API is 50 requests per second per user. If the limit is exceeded, API calls will be subject to Rate Limiting, which may Impact your business. Please invoke the API appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateMediaLiveInput |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 |
| Type |
string |
Yes |
The input type. Valid values: RTMP_PUSH, RTMP_PULL, SRT_PUSH, SRT_PULL, and MEDIA_CONNECT. |
RTMP_PUSH |
| 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. |
G6G4X5T4SZYPSTT5 |
|
| InputSettings |
array<object> |
Yes |
The input settings. An input can have up to two sources: primary and backup sources. |
|
|
object |
No |
|||
| 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 |
| SourceUrl |
string |
No |
The source URL from which the stream is pulled. This parameter is required for PULL inputs. |
rtmp://domain/app/stream |
| 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****** |
| FlowOutputName |
string |
No |
The output name of the MediaConnect flow. This parameter is required when Type is set to MEDIA_CONNECT. |
myFlowOutputName |
| SrtMaxBitrate |
integer |
No |
The maximum bitrate of the SRT stream, in bits per second (bps). Valid values: [100, 100000000]. This parameter is optional when Type is SRT_PUSH or SRT_PULL. |
3000000 |
| SrtLatency |
integer |
No |
The latency of the SRT stream, in milliseconds (ms). Valid values: [100, 10000]. This parameter is optional when Type is SRT_PUSH or SRT_PULL. |
1000 |
| SrtPassphrase |
string |
No |
The SRT encryption configuration. The password for the SRT stream consists of 10 to 79 visible ASCII characters. This parameter is 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; otherwise, the SRT connection will be denied. |
srtencryption |
| SrtPbKeyLen |
integer |
No |
The SRT encryption configuration. The key length for the SRT stream. Valid values: 0, 16, 24, 32. This parameter is 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. |
******11-DB8D-4A9A-875B-275798****** |
| InputId |
string |
The ID of the input. |
SEGK5KA6KYKAWQQH |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"InputId": "SEGK5KA6KYKAWQQH"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.