Queries the upload details, such as the upload time, upload ratio, and upload source, about one or more media files based on the media IDs.
Operation description
- You can call this operation to obtain the upload details only about audio and video files.
- If you use the ApsaraVideo VOD console to upload audio and video files, you can call this operation to query information such as the upload ratio. If you use an upload SDK to upload audio and video files, make sure that the version of the upload SDK meets one of the following requirements:
- The version of the upload SDK for Java is 1.4.4 or later.
- The version of the upload SDK for C++ is 1.0.0 or later.
- The version of the upload SDK for PHP is 1.0.2 or later.
- The version of the upload SDK for Python is 1.3.0 or later.
- The version of the upload SDK for JavaScript is 1.4.0 or later.
- The version of the upload SDK for Android is 1.5.0 or later.
- The version of the upload SDK for iOS is 1.5.0 or later.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MediaIds | string | Yes | The ID of the media file, namely, the audio or video ID. You can specify a maximum of 20 IDs. Separate multiple IDs with commas (,). You can use one of the following methods to obtain the audio or video ID:
| 61ccbdb06fa83012be4d8083f6****,7d2fbc380b0e08e55f**** |
MediaType | string | No | The type of the media file. Set the value to video, which indicates audio and video files. | video |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "9E290613-04F4-47F4-795D30732077****",
"ForbiddenMediaIds": [
"7d2fbc380b0e08e55f****"
],
"NonExistMediaIds": [
"dfsg****"
],
"UploadDetails": [
{
"Status": "Uploading",
"CreationTime": "2019-04-28T09:42:07Z",
"UploadSource": "WebSDK",
"UploadIP": "192.168.0.1",
"DeviceModel": "Chrome",
"ModificationTime": "2019-04-28T09:43:12Z",
"CompletionTime": "2019-04-28T09:45:07Z",
"MediaId": "61ccbdb06fa83012be4d8083f6****",
"UploadSize": 346,
"UploadRatio": 0.038,
"UploadStatus": "Uploading",
"Title": "Test details",
"FileSize": 46
}
]
}
Error codes
For a list of error codes, visit the Service error codes.