Tüm Ürünler
Search
Belge Merkezi

:StartRtcCloudTranscode

Son Güncelleme:Oct 27, 2026

Bir bulut kod dönüştürme görevi oluşturur.

Operation description

Hizmet kayıt uç noktaları

Bu işlem için etkin hizmet kayıt uç noktaları şunları içerir:

Bölge adıBölge kimliğiGenel uç nokta
Singapurap-southeast-1live.ap-southeast-1.aliyuncs.com

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

live:StartRtcCloudTranscode

none

*Tüm kaynaklar.

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

Kanalın ait olduğu uygulamanın kimliği. Kimlik en fazla 64 karakter uzunluğunda olabilir ve harf, rakam, alt çizgi (_) ve tire (-) içerebilir.

********-7074-****-9ef5-85c19a4*****

ChannelId

string

Yes

Kodu dönüştürülecek kullanıcının ait olduğu kanalın kimliği. Kimlik en fazla 64 karakter uzunluğunda olabilir ve harf, rakam, alt çizgi (_) ve tire (-) içerebilir.

myChannel

InputParam

object

Yes

Abonelik girişiyle ilgili parametreler.

SingleSubUserParam

object

Yes

Tek akışlı abonelik için giriş parametreleri.

UserId

string

Yes

Abone olunan kullanıcının kimliği.

userA

StreamType

integer

No

Abone olunan kullanıcının medya türü. Geçerli değerler:

  • 0: Hem ses hem de video akışlarını içeren orijinal akış. Bu, varsayılan değerdir.

  • 1: Yalnızca ses akışı. Bu değer desteklenmez ve herhangi bir etkisi yoktur.

  • 2: Yalnızca video akışı. Bu değer desteklenmez ve herhangi bir etkisi yoktur.

0

SourceType

integer

No

Abone olunan video giriş akışının türü. Bu parametre yalnızca abone olunan medya türü bir video akışı içerdiğinde geçerlidir. Geçerli değerler:

  • 0: Kamera. Bu, varsayılan değerdir.

  • 1: Ekran paylaşımı. Bu değer desteklenmez ve herhangi bir etkisi yoktur.

0

OutputParams

array<object>

Yes

Kod dönüştürme çıkışıyla ilgili parametreler.

object

No

Kod dönüştürme çıkış parametreleri.

ChannelId

string

Yes

Kodu dönüştürülmüş akışın gönderildiği kanalın kimliği. Kimlik en fazla 64 karakter uzunluğunda olabilir ve harf, rakam, alt çizgi (_) ve tire (-) içerebilir. Farklı bir kanala akış gönderme desteklenmez ve bu ayarın herhangi bir etkisi yoktur.

myChannel

UserId

string

Yes

Kodu dönüştürülmüş akışı kanala gönderen kullanıcının kimliği. Kullanıcı kimliğinin kanaldaki diğer kullanıcıların kimliklerinden farklı olduğundan emin olun.

userA_360p

UserToken

string

Yes

Kodu dönüştürülmüş akışı kanala göndermek için gereken kullanıcı belirteci. Daha fazla bilgi için bkz. Belirteç tabanlı kimlik doğrulama.

eyJhcHBpZCI********

TranscodeTemplate

string

Yes

Kod dönüştürme şablonunun adı. Geçerli değerler:

  • alimcopy

  • lld

  • lsd

  • lhd

  • lud

lhd

MaxIdleTime

integer

No

Boşta kalma zaman aşımı süresi. Görev bu süreyi aşan bir süre boyunca boşta kalırsa (belirtilen yayıncı akışına abone olamazsa), görev otomatik olarak durur. Birim: saniye. Geçerli değerler: En fazla 4 saate karşılık gelen 10 ile 14400 arası. Varsayılan değer: 300.

600

Response elements

Element

Type

Description

Example

object

Yanıt içeriği.

RequestId

string

İstek kimliği.

******3B-0E1A-586A-AC29-742247******

TaskId

string

Bulut kod dönüştürme görevinin kimliği.

******73-8501-****-8ac1-72295a******

Examples

Success response

JSON format

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "TaskId": "******73-8501-****-8ac1-72295a******"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter%s %s.
400 MissingParameter%s %s.
400 TooManyRequests %s.
500 InternalError %s. Dahili bir hata oluştu. Tekrar deneyin. Hata birden fazla denemeden sonra devam ederse bir destek talebi oluşturun.
403 Forbidden %s.
404 NotFound%s %s.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.