Queries the input sources of a production studio.
Usage notes
You can call the CreateCaster operation to create a production studio and then call this operation to query the input sources of the production studio.
QPS limit
You can call this operation up to 15 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 limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeCasterVideoResources | The operation that you want to perform. Set the value to DescribeCasterVideoResources. |
CasterId | String | Yes | LIVEPRODUCER_POST-cn-0pp1czt**** | The ID of the production studio.
Note You can find the ID of the production studio in the Instance Name column. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Total | Integer | 2 | The total number of entries returned. |
RequestId | String | CF60DB6A-7FD6-426E-9288-122CC1A52FA7 | The ID of the request. |
VideoResources | Array of VideoResource | Details about the input sources. | |
VideoResource | |||
EndOffset | Integer | 10000 | The offset of the position where the system stops reading the video file. This parameter takes effect only if the input source is a video file. Unit: milliseconds.
|
FlvUrl | String | http://guide.aliyundoc.com/example.org | The source URL. |
BeginOffset | Integer | 1000 | The offset of the position where the system starts to read the video file. This parameter takes effect only if the input source is a video file. Unit: milliseconds. A value greater than 0 indicates an offset from the first frame. |
PtsCallbackInterval | Integer | 0 | The interval between presentation timestamp (PTS) callbacks. If you set the value to 0, no PTS callbacks are returned. This parameter takes effect only if the input source is a video-on-demand (VOD) file. |
MaterialId | String | d2c429cd907742ee8f6e76465ad3**** | The ID of the material. |
LocationId | String | RV01 | The location of the input source. |
LiveStreamUrl | String | rtmp://abcLive/appName/b5447c21fcfe444c9e9b6f7ba208**** | The URL of the live stream. |
VodUrl | String | http://developer.aliyundoc.com/caster1.flv | The URL of the VOD file. This parameter is returned only when the input source is an MP4, FLV, or TS file that is not from the media library. |
ResourceId | String | b5f8c837-ceeb-424f-b30b-68e94e86**** | The ID of the resource. |
RepeatNum | Integer | 0 | The number of playback times after the first playback is complete. This parameter takes effect only when the input source is a video file. Valid values:
|
ResourceName | String | resource-Name1 | The name of the resource. |
ImageId | String | a089175eb5f4427684fc0715159a**** | The ID of the image in the media library. |
ImageUrl | String | http://learn.aliyundoc.com/AppName/image.jpg | The URL of the image. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=DescribeCasterVideoResources
&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" ?>
<DescribeCasterVideoResourcesResponse>
<RequestId>CF60DB6A-7FD6-426E-9288-122CC1A52FA7</RequestId>
<Total>2</Total>
<VideoResources>
<VideoResource>
<EndOffset>10000</EndOffset>
<BeginOffset>1000</BeginOffset>
<MaterialId>d2c429cd907742ee8f6e76465ad3****</MaterialId>
<FlvUrl>http://guide.aliyundoc.com/example.org</FlvUrl>
<ResourceId>b5f8c837-ceeb-424f-b30b-68e94e86****</ResourceId>
<ResourceName>resource-Name1</ResourceName>
<LocationId>RV01</LocationId>
<RepeatNum>0</RepeatNum>
<LiveStreamUrl>rtmp://abcLive/appName/b5447c21fcfe444c9e9b6f7ba208****</LiveStreamUrl>
<PtsCallbackInterval>0</PtsCallbackInterval>
<VodUrl>http://developer.aliyundoc.com/caster1.flv</VodUrl>
</VideoResource>
</VideoResources>
</DescribeCasterVideoResourcesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DescribeCasterVideoResourcesResponse" : {
"RequestId" : "CF60DB6A-7FD6-426E-9288-122CC1A52FA7",
"Total" : 2,
"VideoResources" : {
"VideoResource" : {
"EndOffset" : 10000,
"BeginOffset" : 1000,
"MaterialId" : "d2c429cd907742ee8f6e76465ad3****",
"FlvUrl" : "http://guide.aliyundoc.com/example.org",
"ResourceId" : "b5f8c837-ceeb-424f-b30b-68e94e86****",
"ResourceName" : "resource-Name1",
"LocationId" : "RV01",
"RepeatNum" : 0,
"LiveStreamUrl" : "rtmp://abcLive/appName/b5447c21fcfe444c9e9b6f7ba208****",
"PtsCallbackInterval" : 0,
"VodUrl" : "http://developer.aliyundoc.com/caster1.flv"
}
}
}
}
Error codes
For a list of error codes, see Service error codes.