Mengkueri rekaman dari live stream.
Deskripsi operasi
Dapatkan domain streaming utama, lalu panggil operasi ini untuk mengkueri rekaman dari live stream.
Informasi yang dikembalikan oleh API ini diorganisasikan berdasarkan tugas perekaman. Untuk mendapatkan informasi tentang file rekaman tertentu dalam suatu tugas, gunakan API DescribeLiveStreamRecordIndexFiles dan DescribeLiveStreamRecordIndexFile.
Batas QPS
Anda dapat memanggil operasi ini hingga 50 kali per detik per akun. Permintaan yang melebihi batas ini akan dibatalkan dan Anda akan mengalami gangguan layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamRecordContent |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Domain streaming utama. |
example.com |
| AppName |
string |
Yes |
AppName dari live stream. |
liveApp**** |
| StreamName |
string |
Yes |
Nama live stream. |
liveStream**** |
| StartTime |
string |
Yes |
Waktu mulai kueri. Anda dapat mengkueri rekaman dari 6 bulan terakhir. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2017-12-21T08:00:00Z |
| EndTime |
string |
Yes |
Waktu akhir kueri. Rentang waktu antara StartTime dan EndTime tidak boleh melebihi 4 hari. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2017-12-22T08:00:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
62136AE6-7793-45ED-B14A-60D19A9486D3 |
| RecordContentInfoList |
object |
||
| RecordContentInfo |
array<object> |
Daftar informasi konten rekaman. |
|
|
object |
|||
| EndTime |
string |
The recordings. |
2015-12-01T07:46:00Z |
| StartTime |
string |
The end of the time range for which the recordings were queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2015-12-01T07:36:00Z |
| Duration |
number |
The beginning of the time range for which the recordings were queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
10 |
| OssBucket |
string |
The recording length. Unit: seconds. |
liveBucket**** |
| OssObjectPrefix |
string |
The name of the Object Storage Service (OSS) bucket. |
record/{Date}/{UnixTimestamp}_{Sequence} |
| OssEndpoint |
string |
The naming rule of recordings in OSS. |
cn-oss-****.aliyuncs.com |
Untuk informasi tentang cara membuat URL untuk mengakses sumber daya OSS, lihat Gunakan URL yang sudah ditandatangani untuk mengunduh atau melihat pratinjau file.
Contoh
Respons sukses
JSONformat
{
"RequestId": "62136AE6-7793-45ED-B14A-60D19A9486D3",
"RecordContentInfoList": {
"RecordContentInfo": [
{
"EndTime": "2015-12-01T07:46:00Z",
"StartTime": "2015-12-01T07:36:00Z",
"Duration": 10,
"OssBucket": "liveBucket****",
"OssObjectPrefix": "record/{Date}/{UnixTimestamp}_{Sequence}",
"OssEndpoint": "cn-oss-****.aliyuncs.com"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | |
| 400 | InvalidStartTime.Mismatch | Specified StartTime does not math the current time. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.