Mengambil jumlah penonton online untuk semua live stream di domain tertentu.
Deskripsi operasi
API ini hanya mendukung jumlah penonton untuk stream FLV, RTS, dan RTMP. Stream HLS tidak didukung. Pengumpulan data memiliki keterlambatan. Untuk akurasi, kueri data yang setidaknya berusia 5 menit.
API ini menggantikan endpoint DescribeLiveStreamOnlineUserNum yang sudah usang.
Batas QPS
Anda dapat memanggil operasi ini hingga 200 kali per menit per akun. Permintaan yang melebihi batas ini akan dibatalkan dan Anda mungkin mengalami gangguan layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveDomainOnlineUserNum |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region. |
cn-shanghai |
| DomainName |
string |
Yes |
Domain streaming. |
example.com |
| QueryTime |
string |
No |
Titik waktu untuk dikueri. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC. |
2018-12-27T13:09:21Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
3A3A8C3D-F8B2-4FBF-9319-771A11B855FA |
| UserCount |
integer |
Jumlah total pengguna online pada titik waktu yang ditentukan di domain yang ditentukan. |
1 |
| StreamCount |
integer |
Jumlah stream. |
1 |
| OnlineUserInfo |
object |
||
| LiveStreamOnlineUserNumInfo |
array<object> |
Informasi tentang stream. |
|
|
array<object> |
|||
| StreamName |
string |
The stream name. |
rtmp://example.com/test/liveStream****_3_1 |
| Infos |
object |
||
| Info |
array<object> |
The stream statistics. |
|
|
object |
|||
| UserNumber |
integer |
The number of viewers watching the transcoded stream or the original stream. |
1 |
| TranscodeTemplate |
string |
The transcoding template. A value of origin indicates that the stream is an original, non-transcoded stream. |
origin |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3A3A8C3D-F8B2-4FBF-9319-771A11B855FA",
"UserCount": 1,
"StreamCount": 1,
"OnlineUserInfo": {
"LiveStreamOnlineUserNumInfo": [
{
"StreamName": "rtmp://example.com/test/liveStream****_3_1",
"Infos": {
"Info": [
{
"UserNumber": 1,
"TranscodeTemplate": "origin"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | The request processing has failed due to backend service exception. | |
| 400 | InvalidQueryTime.Exceed | QueryTime exceed three month. | |
| 400 | InvalidQueryTime.Malformed | Specified QueryTime is malformed. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.