All Products
Search
Document Center

ApsaraVideo Live:HotLiveRtcStream

Last Updated:Nov 14, 2024

Configures prefetch for a live stream that is ingested based on Real-Time Communication (RTC).

Operation description

QPS limit

You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
live:HotLiveRtcStream
*Domain
acs:live:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The streaming domain.

example.com
AppNamestringYes

The name of the application to which the live stream belongs.

app
StreamNamestringYes

The name of the live stream that you want to prefetch.

stream
RegionCodestringYes

The code of the region in which the live stream is prefetched. For more information, see the following tables that list available region codes.

Note Region codes include provincial codes for China and country codes for all countries.
ZHJ
AudioMsidstringYes

The audio MSID.

rts audio
VideoMsidstringYes

The video MSID.

rts video
ConnectionTimeoutstringNo

The duration for which the prefetch connection is maintained. Unit: milliseconds. Default value: 0, which specifies that the prefetch connection is always maintained.

0
MediaTimeoutstringNo

The custom period after which a timeout event is triggered. Unit: milliseconds.

100000

Region codes

Provincial codes for China

Provincial divisionCode
BeijingBEJ
TianjinTAJ
HebeiHEB
ShanxiSHX
Nei MongolNMG
LiaoningLIA
JilinJIL
HeilongjiangHLJ
ShanghaiSHH
JiangsuJSU
ZhejiangZHJ
AnhuiANH
FujianFUJ
JiangxiJXI
ShandongSHD
HenanHEN
HubeiHUB
HunanHUN
GuangdongGUD
GuangxiGXI
HainanHAI
ChongqingCHQ
SichuanSCH
GuizhouGUI
YunnanYUN
XizangTIB
ShaanxiSHA
GansuGAN
QinghaiQIH
NingxiaNXA
XinjiangXIN
TaiwanTAI
Hong KongHKG
MacaoMAC

Country codes for all countries

CountryCode
Papua New GuineaPG
SlovakiaSK
PeruPE
LatviaLV
United Arab EmiratesAE
CanadaCA
CubaCU
MauritaniaMR
JapanJP
ArmeniaAM
TurkmenistanTM
RussiaRU
BelarusBY
GuineaGN
IraqIQ
ArgentinaAR
ChileCL
EswatiniSZ
Democratic Republic of the CongoCD
BelgiumBE
KazakhstanKZ
SerbiaRS
TürkiyeTR
NamibiaNA
LithuaniaLT
Puerto RicoPR
Republic of the CongoCG
New CaledoniaNC
MoroccoMA
GreenlandGL
KuwaitKW
LiberiaLR
UkraineUA
IndonesiaID
MyanmarMM
BoliviaBO
MoldovaMD
GreeceGR
New ZealandNZ
Solomon IslandsSB
EthiopiaET
FijiFJ
YemenYE
CyprusCY
Bosnia and HerzegovinaBA
EritreaER
GermanyDE
PakistanPK
Central African RepublicCF
CroatiaHR
EgyptEG
ThailandTH
Costa RicaCR
TanzaniaTZ
LaosLA
LibyaLY
TunisiaTN
PolandPL
United KingdomGB
Equatorial GuineaGQ
ChinaCN
IcelandIS
OmanOM
MongoliaMN
ChadTD
United StatesUS
MexicoMX
KyrgyzstanKG
SurinameSR
IndiaIN
Guinea-BissauGW
VenezuelaVE
ItalyIT
AlgeriaDZ
QatarQA
FranceFR
South AfricaZA
NorwayNO
PortugalPT
HungaryHU
South KoreaKR
UzbekistanUZ
BurundiBI
EstoniaEE
BangladeshBD
BhutanBT
AfghanistanAF
SwitzerlandCH
BelizeBZ
Timor-LesteTL
HaitiHT
TogoTG
AlbaniaAL
CameroonCM
NicaraguaNI
NigeriaNG
HondurasHN
Burkina FasoBF
MozambiqueMZ
GeorgiaGE
VanuatuVU
ParaguayPY
LuxembourgLU
LebanonLB
UgandaUG
MaliML
Saudi ArabiaSA
PalestinePS
MontenegroME
ColombiaCO
PhilippinesPH
SwedenSE
FinlandFI
KenyaKE
RomaniaRO
PanamaPA
JordanJO
RwandaRW
LesothoLS
MacedoniaMK
ZambiaZM
SyriaSY
SpainES
EcuadorEC
GabonGA
IrelandIE
Dominican RepublicDO
GhanaGH
MadagascarMG
MalaysiaMY
AustriaAT
TajikistanTJ
DenmarkDK
UruguayUY
CambodiaKH
SenegalSN
El SalvadorSV
Sierra LeoneSL
BruneiBN
Western SaharaEH
NigerNE
IranIR
GuyanaGY
AngolaAO
BotswanaBW
BrazilBR
AustraliaAU
Côte d'IvoireCI
Czech RepublicCZ
The GambiaGM
BeninBJ
VietnamVN
SudanSD
NetherlandsNL
DjiboutiDJ
SloveniaSI
NepalNP
ZimbabweZW
JamaicaJM
MalawiMW
AzerbaijanAZ
SomaliaSO
IsraelIL
Falkland Islands (Islas Malvinas)FK
North KoreaKP
GuatemalaGT
BahamasBS
Sri LankaLK
SingaporeSG
BahrainBH

Response parameters

ParameterTypeDescriptionExample
object

The request ID.

RequestIdstring

The request ID.

16BFE188-B193-4C3C-ADC5-79A7E31486EA

Examples

Sample success responses

JSONformat

{
  "RequestId": "16BFE188-B193-4C3C-ADC5-79A7E31486EA"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamParameter invalid.Illegal input parameters
400NoSpecialConfigurationno special configuration for domain name.The domain name does not open the preheating switch.
400CodeRegionHasNoNodethis region has no corresponding node.-
500InternalErrorThe request processing has failed due to backend service exception.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history