Creates a live media input.
Operation description
-
Creates a live media input.
Queries per second (QPS) limit
The QPS limit for this API operation is 50 requests per second per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation 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 passphrase, which consists of 10 to 79 visible ASCII characters. This parameter is optional when Type is SRT_PUSH or SRT_PULL. If a passphrase is specified, all SRT clients must provide the correct passphrase to publish or play back the stream. Otherwise, the SRT connection is rejected. |
srtencryption |
| SrtPbKeyLen |
integer |
No |
The SRT encryption key length. Valid values: 0, 16, 24, and 32. This parameter is optional when Type is SRT_PUSH or SRT_PULL. |
16 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| InputId |
string |
The input ID. |
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.