Queries the information about the episode list for carousel playback in a production studio.
Usage notes
You can call this operation to query episodes in the episode list for carousel playback. The supported types of episodes include video resource and component.
QPS limit
You can call this operation up to 4 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
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | DescribeCasterProgram | The operation that you want to perform. Set the value to DescribeCasterProgram. |
CasterId | String | Yes | LIVEPRODUCER_POST-cn-0pp1czt**** | The ID of the production studio. If the production studio was created by calling the CreateCaster operation, check the value of the response parameter CasterId to obtain the ID. |
EpisodeId | String | No | 1872639A-F203-4EC5-8E43-CB92E68F**** | The ID of the episode. |
EpisodeType | String | No | Resource | The type of the episode. Valid values:
|
StartTime | String | No | 2016-06-29T09:00:00Z | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
EndTime | String | No | 2016-06-29T10:00:00Z | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
PageNum | Integer | No | 5 | The page number. |
PageSize | Integer | No | 10 | The number of entries per page. |
Status | Integer | No | 0 | The status of the episode. Valid values:
|
Response parameters
Parameter |
Type |
Example |
Description |
CasterId | String | LIVEPRODUCER_POST-cn-0pp1czt**** | The ID of the production studio. |
Episodes | Array of Episode | The list of the episodes. |
|
Episode | |||
ComponentIds | Array of String | ["1872639A-F203-4EC5-8E43-CB929282****" ] | The components. |
EndTime | String | 2016-06-29T10:02:00Z | The end of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
EpisodeId | String | 1872639A-F203-4EC5-8E43-CB92E68F**** | The ID of the episode. |
EpisodeName | String | program_name_1 | The name of the episode. |
EpisodeType | String | Resource | The type of the episode. Valid values:
|
ResourceId | String | 1872639A-F203-4EC5-8E43-CB92E837**** | The ID of the video resource. |
StartTime | String | 2016-06-29T09:00:00Z | The beginning of the time range during which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Status | Integer | 0 | The status of the episode. |
SwitchType | String | TimeFirst | The policy for switching episodes. Valid values:
|
ProgramEffect | Integer | 1 | Indicates whether carousel playback is enabled.
|
ProgramName | String | programs_name | The name of the episode list. |
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The request ID. |
Total | Integer | 1 | The total number of entries. |
Examples
Sample requests
https://live.aliyuncs.com/?Action=DescribeCasterProgram
&CasterId=LIVEPRODUCER_POST-cn-0pp1czt****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<DescribeCasterProgramResponse>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
<ProgramId>1872639A-F203-4EC5-8E43-CB92E68F****</ProgramId>
<ProgramName>programs_name</ProgramName>
<ProgramEffect>1</ProgramEffect>
<Episodes>
<EpisodeId>1872639A-F203-4EC5-8E43-CB92E68F****</EpisodeId>
<EpisodeType>Resource</EpisodeType>
<EpisodeName>program_name_1</EpisodeName>
<ResourceId>1872639A-F203-4EC5-8E43-CB92E837****</ResourceId>
<ComponentIds>1872639A-F203-4EC5-8E43-CB929282****</ComponentIds>
<StartTime>2016-06-29T09:00:00Z</StartTime>
<EndTime>2016-06-29T10:02:00Z</EndTime>
<Duration>120</Duration>
<SwitchType>TimeFirst</SwitchType>
</Episodes>
<Episodes>
<EpisodeId>1872639A-F203-4EC5-8E43-CB92E687****</EpisodeId>
<EpisodeType>Component</EpisodeType>
<ComponentIds>1872639A-F203-4EC5-8E43-CB625364****</ComponentIds>
<StartTime>2016-06-29T19:02:00Z</StartTime>
<EndTime>2016-06-29T19:04:00Z</EndTime>
</Episodes>
</DescribeCasterProgramResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DescribeCasterProgramResponse" : {
"RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
"ProgramId" : "1872639A-F203-4EC5-8E43-CB92E68F****",
"ProgramName" : "programs_name",
"ProgramEffect" : 1,
"Episodes" : [ {
"EpisodeId" : "1872639A-F203-4EC5-8E43-CB92E68F****",
"EpisodeType" : "Resource",
"EpisodeName" : "program_name_1",
"ResourceId" : "1872639A-F203-4EC5-8E43-CB92E837****",
"ComponentIds" : "1872639A-F203-4EC5-8E43-CB929282****",
"StartTime" : "2016-06-29T09:00:00Z",
"EndTime" : "2016-06-29T10:02:00Z",
"Duration" : 120,
"SwitchType" : "TimeFirst"
}, {
"EpisodeId" : "1872639A-F203-4EC5-8E43-CB92E687****",
"EpisodeType" : "Component",
"ComponentIds" : "1872639A-F203-4EC5-8E43-CB625364****",
"StartTime" : "2016-06-29T19:02:00Z",
"EndTime" : "2016-06-29T19:04:00Z"
} ]
}
}
Error codes
For a list of error codes, see Service error codes.