tencent cloud

Feedback

CreateMediaConnectOutput

Last updated: 2020-12-02 11:38:20
This document is currently invalid. Please refer to the documentation page of the product.

1. API Description

Domain name for API request: mdc.tencentcloudapi.com.

This API is used to create the output information of a MediaConnect flow.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: CreateMediaConnectOutput.
Version Yes String Common parameter. The value used for this API: 2020-08-28.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
FlowId Yes String Flow ID.
Output Yes CreateOutput Output configuration of a flow.

3. Output Parameters

Parameter Name Type Description
Info DescribeOutput Information of the created output.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Sample request

Input Example

POST / HTTP/1.1
Host: mdc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateMediaConnectOutput
<Common request parameters>

{"FlowId":"01746cfeda560956b92d34d30445","Output":{"OutputName":"bbbbaaa","Description":"description","Protocol":"SRT","OutputRegion":"ap-mumbai","SRTSettings":{"Destinations":[{"Ip":"1.1.1.1","Port":10000},{"Ip":"1.1.1.1","Port":10000}],"StreamId":"#!::u=johnny,t=file,m=publish,r=results.csv","Latency":1000,"RecvLatency":1000,"PeerLatency":1000,"PeerIdleTimeout":1000},"RTPSettings":{"Destinations":[{"Ip":"1.1.1.1","Port":10000},{"Ip":"1.1.1.1","Port":10000}],"FEC":"none","IdleTimeout":1000},"RTMPSettings":{"Destinations":[{"Url":"rtmp://domain/live","StreamKey":"streamid?a=b"},{"Url":"rtmp://domain/live","StreamKey":"streamid?a=b"}],"ChunkSize":4096,"Url":"rtmp://domain/live","StreamKey":"streamid?a=b"}}}

Output Example

{
  "Response": {
    "Info": {
      "OutputId": "01746d03dd8c0956b92d34d30447",
      "OutputName": "bbbbaaa",
      "OutputType": "Internet",
      "Description": "description",
      "Protocol": "SRT",
      "OutputAddressList": [
        {
          "Ip": "1.1.1.1"
        },
        {
          "Ip": "2.2.2.2"
        }
      ],
      "OutputRegion": "ap-mumbai",
      "SRTSettings": {
        "Destinations": [
          {
            "Ip": "1.1.1.1",
            "Port": 10000
          },
          {
            "Ip": "1.1.1.1",
            "Port": 10000
          }
        ],
        "StreamId": "#!::u=johnny,t=file,m=publish,r=results.csv",
        "Latency": 1000,
        "RecvLatency": 1000,
        "PeerLatency": 1000,
        "PeerIdleTimeout": 1000,
        "Passphrase": "",
        "PbKeyLen": 0
      },
      "RTPSettings": {
        "Destinations": [],
        "FEC": "",
        "IdleTimeout": 0
      },
      "RTMPSettings": {
        "Destinations": [],
        "IdleTimeout": 0,
        "ChunkSize": 0
      }
    },
    "RequestId": "aaaaa"
  }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
InvalidParameter.ExceededQuantityLimit The quantity exceeds the limit.
InvalidParameter.Id Invalid ID.
InvalidParameter.Name Invalid Name.
InvalidParameter.Output Invalid Output.
InvalidParameter.State Unexpected status.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support