All Products
Search
Document Center

ApsaraVideo Live:UpdateLiveRecordVodConfig

Last Updated:Jun 10, 2026

Memperbarui konfigurasi live-to-VOD.

Deskripsi operasi

This operation has a rate limit of 1,000 calls per minute per account. If you exceed this limit, your API calls will be rate-limited, which may interrupt your service.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

live:UpdateLiveRecordVodConfig

update

*Domain

acs:cdn:*:{#accountId}:domain/{#DomainName}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

No

ID wilayah.

cn-shanghai

DomainName

string

Yes

Domain streaming.

example.com

AppName

string

Yes

Nama aplikasi. Anda dapat melihat AppName di halaman Manajemen Aliran.

testName

StreamName

string

No

Nama aliran. Anda dapat melihat StreamName di halaman Manajemen Aliran.

stream

VodTranscodeGroupId

string

No

Penting Parameter ini diabaikan jika parameter RecordFormat ditentukan.
ID kelompok template transkoding ApsaraVideo for VOD.

e2d796d3bb5fd8049d32bff62f94****

CycleDuration

integer

No

Durasi setiap file rekaman siklis, dalam detik. Nilai default: 3600. Nilai valid: 300 hingga 21600.

300

AutoCompose

string

No

Penting Parameter ini diabaikan jika parameter RecordFormat ditentukan.
Apakah akan mengaktifkan Pencampuran aliran otomatis. Nilai valid:

  • ON: Mengaktifkan Pencampuran aliran otomatis. Jika Anda menetapkan nilai ini ke ON, Anda juga harus menentukan parameter ComposeVodTranscodeGroupId.

OFF

ComposeVodTranscodeGroupId

string

No

Penting Parameter ini diabaikan jika parameter RecordFormat ditentukan.
ID kelompok template transkoding ApsaraVideo for VOD yang digunakan untuk mentranskode video setelah Pencampuran aliran otomatis.

Catatan

Anda dapat mendapatkan ID dengan memanggil operasi Query Transcoding Configuration List.

*****

OnDemand

integer

No

Mode rekaman sesuai permintaan. Nilai valid:

  • 0 (default): Menonaktifkan rekaman sesuai permintaan.

  • 1: Mengaktifkan rekaman sesuai permintaan yang dipicu oleh callback HTTP.

  • 2: Memicu rekaman dengan Penguraian parameter dorong aliran.

  • 7: Rekaman manual. Panggil operasi RealTimeRecordCommand untuk memulai atau menghentikan rekaman.

0

DelayTime

integer

No

Durasi maksimum interupsi aliran, dalam detik. Jika interupsi aliran melebihi durasi ini, sistem menghasilkan file baru. Nilai valid: 15 hingga 21600.

180

RecordFormat

array<object>

No

Daftar parameter untuk setiap format rekaman.

object

No

The configuration for a recording format.

Penting This operation can only modify the parameters of existing recording formats. You cannot use it to add or remove formats from the configuration. For example, if your configuration includes m3u8 and flv, you can update their parameters but not add mp4.

Format

string

No

The recording storage format.

m3u8

SliceDuration

integer

No

The duration of each segment, in seconds.

Penting This parameter applies only to the m3u8 format.
The default value is 30. Valid values: 5 to 30.

30

AutoCompose

string

No

Specifies whether to enable automatic composition. Valid values:

  • ON: Enables automatic composition.

  • OFF: Disables automatic composition.

ON

VideoProcess

string

No

The video source to process. Valid values:

  • origin (default): Processes the source video.

  • compose: Processes the composed video.

To process both the source and composed videos, separate the values with a comma. For example, origin,compose.

origin

ProcessMethod

string

No

The video processing method. Valid values:

  • transcode: Processes the video by using a transcoding template group.

  • workflow: Processes the video by using a workflow.

transcode

ProcessTemplateId

string

No

The ID of the transcoding template group or workflow.

Catatan

The ID must match the video processing method specified in ProcessMethod. For example, if ProcessMethod is set to transcode, you must use a transcoding template group ID.

e2d796d3bb5fd8049d32bff62f94****

Tags

string

No

A tag for video classification.

sports

TranscodeTemplates

array

No

Daftar template transkoding.

string

No

  • The transcoding template for recording a transcoded stream. You can specify a maximum of 10 templates.

  • This parameter is required if you record transcoded streams.

  • To record all transcoded streams, set TranscodeTemplates.1 to the wildcard character (*).

Catatan

The value raw is reserved and cannot be used for TranscodeTemplates. The N in TranscodeTemplates.N is an index for specifying multiple settings. For example: TranscodeTemplates.1=sd, TranscodeTemplates.2=hd.

sd

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

61C96B9A-F203-4EC5-8E43-CB92E68F67DF

Contoh

Respons sukses

JSONformat

{
  "RequestId": "61C96B9A-F203-4EC5-8E43-CB92E68F67DF"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 ConfigAlreadyExists Config has already exist.
400 CommomLiveRcordConfigExisted Commom liverecord config has already exist.
400 InvalidAutoCompose.Malformed Specified parameter AutoCompose is not valid.
400 InvalidAutoComposeAndComposeVodTranscodeGroupId.Malformed Specified parameter AutoCompose and ComposeVodTranscodeGroupId is not valid, must both empty or input
400 InvalidParam %s.
500 InternalError The request processing has failed due to backend service exception.
403 InvalidRegion.Conflict Specified parameter StorageLocation and Region is not match
404 InvalidStorage.NotFound Specified parameter StorageLocation is not exist
404 InvalidTemplateGroupId.NotFound Specified parameter vodTranscodeGroupId or composeVodTranscodeGroupId is not exist

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.