UpdateMediaLiveInput

更新时间:
复制 MD 格式

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.