Queries MediaLive channels.
Operation description
QPS limit
This operation can be called up to 50 times per second per Alibaba Cloud account. Requests that exceed this limit are dropped, which may cause service interruptions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListMediaLiveChannels |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value:
|
10 |
| Skip |
integer |
No |
The number of entries to skip. If this value exceeds the total number of matching entries, an empty list is returned. |
20 |
| NextToken |
string |
No |
The pagination token for the next request. You do not need to specify this parameter for the first request. Set this to the NextToken value returned by the previous request. |
caeba0bbb2be03f84eb48b699f0a4883 |
| SortOrder |
string |
No |
The sort order of channels by creation time. Valid values: asc (ascending) and desc (descending). Default value: asc. |
desc |
| Keyword |
string |
No |
The search keyword. Fuzzy match is supported for channel ID and name. |
123 |
| States |
string |
No |
The channel states to filter by. Separate multiple states with commas (,) in a JSON array. |
["IDLE","RUNNING"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| Channels |
array<object> |
The channels. |
|
|
array<object> |
|||
| ChannelId |
string |
The ID of the channel. |
SEGK5KA6KYKAWQQH |
| Name |
string |
The name of the channel. |
mych |
| State |
string |
The state of the channel. Valid values: IDLE, STARTING, RUNNING, RECOVERING, and STOPPING. |
IDLE |
| InputAttachments |
array<object> |
The inputs associated with the channel. |
|
|
array<object> |
|||
| InputId |
string |
The ID of the input. |
SEGK5KA6KYKAWQQH |
| InputName |
string |
The name of the input. |
myinput |
| LanguageName |
string |
The name of the language. |
eng |
| AudioSelectors |
array<object> |
The audio selectors. |
|
|
array<object> |
|||
| Name |
string |
The name of the audio selector. |
myselector |
| AudioLanguageSelection |
object |
The audio language selection. |
|
| LanguageCode |
string |
A three-letter ISO 639-2 language code from within an audio source. |
eng |
| AudioPidSelection |
object |
The audio PID selection. |
|
| Pid |
integer |
A PID from within a source. |
123 |
| AudioTrackSelection |
array<object> |
The audio track selection. |
|
|
object |
|||
| TrackId |
integer |
The track ID from within a source. |
1 |
| OutputGroups |
array<object> |
The output groups. |
|
|
array<object> |
|||
| Name |
string |
The name of the output group. |
group1 |
| Type |
string |
The output group type. |
MediaPackage |
| Outputs |
array<object> |
The outputs in the output group. |
|
|
array<object> |
|||
| Name |
string |
The name of the output. |
output1 |
| MediaType |
integer |
The media type of the output. |
0 |
| MediaPackageOutputSetting |
object |
The settings of the output delivered to MediaPackage. |
|
| NameModifier |
string |
The manifest name modifier. The child manifests include this modifier in their M3U8 file names. |
480p |
| AudioGroupId |
string |
The manifest audio group ID. |
audiogroup |
| VideoSettingName |
string |
The name of the referenced VideoSettings. |
myVideo1 |
| AudioSettingNames |
array |
The referenced AudioSettings. |
|
|
string |
The name of the referenced AudioSettings. |
myAudio1 |
|
| MediaPackageGroupSetting |
object |
The MediaPackage destination. |
|
| GroupName |
string |
GroupName in MediaPackage. |
myPackageGroup |
| ChannelName |
string |
ChannelName in MediaPackage. |
myPackageChannel |
| MonitorUrl |
string |
The URL for monitoring the output group. This parameter is returned only when the output group type is MediaPackage. |
rtmp://xxx |
| AudioSettings |
array<object> |
The audio settings. |
|
|
array<object> |
|||
| Name |
string |
The name of the audio settings. |
zhuanfengzhuang |
| AudioSelectorName |
string |
The name of the audio selector. |
myselector |
| LanguageCode |
string |
A three-letter ISO 639-2 language code. |
eng |
| LanguageName |
string |
The name of the language. |
English |
| AudioCodec |
string |
The audio codec. |
aac |
| AudioCodecSetting |
object |
The audio encoding settings. |
|
| Profile |
string |
The audio codec profile. |
AAC-LOW |
| Bitrate |
integer |
The audio bitrate. Unit: bit/s. |
200000 |
| SampleRate |
integer |
The audio sample rate. Unit: Hz. |
44100 |
| VideoSettings |
array<object> |
The video settings. |
|
|
array<object> |
|||
| Name |
string |
The name of the video settings. |
video1 |
| Width |
integer |
The width of the video in pixels. |
1280 |
| Height |
integer |
The height of the video in pixels. |
720 |
| VideoCodec |
string |
The video codec. |
H264 |
| VideoCodecSetting |
object |
The video encoding settings. |
|
| Rate |
object |
The video encoding rate. |
|
| Bitrate |
integer |
The video bitrate. Unit: bit/s. |
2500000 |
| RateControlMode |
string |
The bitrate control mode. |
ABR |
| MaxBitrate |
integer |
The maximum bitrate. Unit: bit/s. |
6000000 |
| BufferSize |
integer |
The video buffer size. Unit: bit/s. |
6000000 |
| Framerate |
object |
The frame rate. |
|
| FramerateControl |
string |
The frame rate mode. |
SPECIFIED |
| FramerateNumerator |
integer |
The numerator of the fixed frame rate. |
25 |
| FramerateDenominator |
integer |
The denominator of the fixed frame rate. |
1 |
| Gop |
object |
The GOP setting. |
|
| GopSizeUnits |
string |
The GOP size unit. |
FRAMES |
| GopSize |
integer |
The GOP size. |
90 |
| BframesNum |
integer |
The number of B frames. |
3 |
| CodecDetail |
object |
The video encoding settings. |
|
| Profile |
string |
The H.264 profile. |
MAIN |
| Level |
string |
The video encoding level. It is not supported yet. |
H264_LEVEL_AUTO |
| VideoCodecType |
string |
The video transcoding method. Valid values: NORMAL (regular transcoding) and NBHD (Narrowband HD™ transcoding). |
NORMAL |
| CreateTime |
string |
The time when the channel was created, in the yyyy-MM-ddTHH:mm:ssZ format (ISO 8601, UTC). |
2024-12-03T06:56:42Z |
| LastStartTime |
string |
The time when the channel was last started, in the yyyy-MM-ddTHH:mm:ssZ format (ISO 8601, UTC). An empty string is returned if the channel has never been started. |
2024-12-03T06:56:42Z |
| LastStopTime |
string |
The time when the channel was last stopped, in the yyyy-MM-ddTHH:mm:ssZ format (ISO 8601, UTC). An empty string is returned if the channel has never been stopped. |
2024-12-03T06:56:42Z |
| MaxResults |
integer |
The number of entries returned per page. |
10 |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. |
caeba0bbb2be03f84eb48b699f0a4883 |
| TotalCount |
integer |
The total number of entries returned. |
100 |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"Channels": [
{
"ChannelId": "SEGK5KA6KYKAWQQH",
"Name": "mych",
"State": "IDLE",
"InputAttachments": [
{
"InputId": "SEGK5KA6KYKAWQQH",
"InputName": "myinput",
"LanguageName": "eng",
"AudioSelectors": [
{
"Name": "myselector",
"AudioLanguageSelection": {
"LanguageCode": "eng"
},
"AudioPidSelection": {
"Pid": 123
},
"AudioTrackSelection": [
{
"TrackId": 1
}
]
}
]
}
],
"OutputGroups": [
{
"Name": "group1",
"Type": "MediaPackage",
"Outputs": [
{
"Name": "output1",
"MediaType": 0,
"MediaPackageOutputSetting": {
"NameModifier": "480p",
"AudioGroupId": "audiogroup"
},
"VideoSettingName": "myVideo1",
"AudioSettingNames": [
"myAudio1"
]
}
],
"MediaPackageGroupSetting": {
"GroupName": "myPackageGroup",
"ChannelName": "myPackageChannel"
},
"MonitorUrl": "rtmp://xxx"
}
],
"AudioSettings": [
{
"Name": "zhuanfengzhuang",
"AudioSelectorName": "myselector",
"LanguageCode": "eng",
"LanguageName": "English",
"AudioCodec": "aac",
"AudioCodecSetting": {
"Profile": "AAC-LOW",
"Bitrate": 200000,
"SampleRate": 44100
}
}
],
"VideoSettings": [
{
"Name": "video1",
"Width": 1280,
"Height": 720,
"VideoCodec": "H264",
"VideoCodecSetting": {
"Rate": {
"Bitrate": 2500000,
"RateControlMode": "ABR",
"MaxBitrate": 6000000,
"BufferSize": 6000000
},
"Framerate": {
"FramerateControl": "SPECIFIED",
"FramerateNumerator": 25,
"FramerateDenominator": 1
},
"Gop": {
"GopSizeUnits": "FRAMES",
"GopSize": 90,
"BframesNum": 3
},
"CodecDetail": {
"Profile": "MAIN",
"Level": "H264_LEVEL_AUTO"
}
},
"VideoCodecType": "NORMAL"
}
],
"CreateTime": "2024-12-03T06:56:42Z",
"LastStartTime": "2024-12-03T06:56:42Z",
"LastStopTime": "2024-12-03T06:56:42Z"
}
],
"MaxResults": 10,
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"TotalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.