Mengambil semua aset media yang terkait dengan proyek saat ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetEditingProjectMaterials |
get |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
string |
Yes |
ID proyek pengeditan cloud. |
*****fb2101cb318***** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema tanggapan. |
||
| RequestId |
string |
ID permintaan. |
******89-C21D-4B78-AE24-3788B8****** |
| ProjectId |
string |
ID proyek. |
*****67ae06542b9b93e0d1c387***** |
| MediaInfos |
array<object> |
Aset media yang memenuhi persyaratan. |
|
|
array<object> |
|||
| MediaId |
string |
ID media. |
*****64623a94eca8516569c8fe***** |
| MediaBasicInfo |
object |
Informasi dasar aset media. |
|
| MediaId |
string |
ID media. |
*****64623a94eca8516569c8f***** |
| InputURL |
string |
URL aset media yang akan didaftarkan di sistem terkait. |
http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4 |
| MediaType |
string |
Tipe media. |
video |
| BusinessType |
string |
Tipe bisnis. |
general |
| Source |
string |
Sumber. |
oss |
| Title |
string |
Judul. |
file.mp4 |
| Description |
string |
Deskripsi. |
sample_description |
| Category |
string |
Kategori. |
video |
| MediaTags |
string |
Tag. |
Tag,tag1 |
| CoverURL |
string |
URL gambar sampul. |
http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature |
| UserData |
string |
Data pengguna. |
userData |
| Snapshots |
string |
Snapshot. |
null |
| Status |
string |
Status sumber daya. |
Normal |
| TranscodeStatus |
string |
Status transkoding. Valid values:
|
Init |
| CreateTime |
string |
Waktu saat aset media dibuat. Waktu mengikuti standar ISO 8601 dalam UTC (berakhiran Z). |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
Waktu saat aset media dimodifikasi. Waktu mengikuti standar ISO 8601 dalam UTC (berakhiran Z). |
2020-12-26T04:11:08Z |
| DeletedTime |
string |
Waktu saat aset media dihapus. Waktu mengikuti standar ISO 8601 dalam UTC (berakhiran Z). |
2020-12-26T04:11:08Z |
| SpriteImages |
string |
Sprite gambar. |
null |
| FileInfoList |
array<object> |
Informasi file. |
|
|
array<object> |
|||
| FileBasicInfo |
object |
Informasi dasar file, termasuk durasi dan ukuran. |
|
| FileName |
string |
Nama file. |
example.mp4 |
| FileStatus |
string |
Status file. |
Normal |
| FileType |
string |
Tipe file. |
source_file |
| FileSize |
string |
Ukuran file dalam byte. |
30611502 |
| FileUrl |
string |
URL OSS file. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
Wilayah penyimpanan file. |
cn-shanghai |
| FormatName |
string |
Format kontainer. |
mov,mp4,m4a,3gp,3g2,mj2 |
| Duration |
string |
Durasi. |
216.206667 |
| Bitrate |
string |
Bitrate. |
1132.68 |
| Width |
string |
Lebar. |
960 |
| Height |
string |
Tinggi. |
540 |
| LiveMaterials |
array<object> |
Materi yang terkait dengan aliran langsung. |
|
|
object |
|||
| AppName |
string |
Nama aplikasi aliran langsung. |
testrecord |
| StreamName |
string |
Nama aliran siaran langsung. |
testrecord |
| DomainName |
string |
Nama domain aliran live. |
test.alivecdn.com |
| LiveUrl |
string |
URL aliran live. |
rtmp://test.alivecdn.com/testrecord/teststream |
| ProjectMaterials |
array |
Materi yang terkait dengan proyek pengeditan. Proyek pengeditan live dikaitkan dengan proyek pengeditan reguler setelah aliran live berakhir. |
*****9b145c5cafc2e057304fcd***** |
|
string |
ID proyek pengeditan reguler yang dikaitkan dengan proyek pengeditan live. |
*****c38767ae06542b9b93e0d1***** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "******89-C21D-4B78-AE24-3788B8******",
"ProjectId": "*****67ae06542b9b93e0d1c387*****",
"MediaInfos": [
{
"MediaId": "*****64623a94eca8516569c8fe*****",
"MediaBasicInfo": {
"MediaId": "*****64623a94eca8516569c8f*****",
"InputURL": "http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "file.mp4",
"Description": "sample_description",
"Category": "video",
"MediaTags": "标签,tag1",
"CoverURL": "http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature",
"UserData": "userData",
"Snapshots": "null",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2020-12-26T04:11:08Z",
"DeletedTime": "2020-12-26T04:11:08Z",
"SpriteImages": "null"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "30611502",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Region": "cn-shanghai",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Duration": "216.206667",
"Bitrate": "1132.68",
"Width": "960",
"Height": "540"
}
}
]
}
],
"LiveMaterials": [
{
"AppName": "testrecord",
"StreamName": "testrecord",
"DomainName": "test.alivecdn.com",
"LiveUrl": "rtmp://test.alivecdn.com/testrecord/teststream"
}
],
"ProjectMaterials": [
"*****c38767ae06542b9b93e0d1*****"
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter \ is not valid. | |
| 404 | ProjectNotFound | The specified project not found |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.