Sets the background for a playlist.
Operation description
First, create a production studio in playlist mode. Then, you can call this operation to add background materials. To create a production studio using an API, see CreateCaster.
You can use this operation to create, update, or delete the background of a playlist. To delete the background, leave the ResourceType, ResourceUrl, and MaterialId parameters empty.
-
If you use ApsaraVideo VOD resources, prioritize resources from hosted buckets because resources from your own buckets may expire. If you use resources from your own buckets, take note of their expiration dates.
-
For material resources, prioritize resources from ApsaraVideo Live and ApsaraVideo VOD. Resources from third-party URLs may fail to play. You must ensure the quality and validity of these resources.
QPS limit
The queries per second (QPS) limit for this operation is 10 calls per second for each user. If you exceed the limit, API calls are throttled. This can impact your business. You must call this operation within the limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:SetShowListBackground |
update |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| CasterId |
string |
Yes |
The ID of the production studio.
Note
The production studio name in the list on the Cloud Production Studios page is the production studio ID. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| ResourceType |
string |
No |
The type of the material. Valid values:
Note
You can specify one of the three values or leave this parameter empty. |
VOD |
| MaterialId |
string |
No |
The ID of the VOD material. Note
Specify either this parameter or ResourceUrl. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| ResourceUrl |
string |
No |
The URL of the external material. |
http://****/atestObject****.m3u8 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
987DA143-A39C-5B5D-AF5B-3B07944A0036 |
Examples
Success response
JSON format
{
"RequestId": "987DA143-A39C-5B5D-AF5B-3B07944A0036"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s | |
| 400 | MissingParameter | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | InvalidParameter.PageSize | %s | |
| 400 | InvalidParameter.PageNum | %s | |
| 400 | InvalidParameter.Status | %s | |
| 400 | InvalidParameter.StartTime | %s | |
| 400 | InvalidParameter.EndTime | %s | |
| 400 | LiveServiceNotFound | %s | |
| 500 | InternalError | %s | |
| 404 | InvalidCaster.NotFound | The caster does not exist. | The caster does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.