提交工单
咨询集成、功能及报价等问题
Queries the status of a file transcoding task.
Listed below are the parameters specific to this request. For the complete list of public request parameters, see Accessing Server APIs - Public parameters..
Parameter | Type | Required | Description |
---|---|---|---|
TaskId |
String |
Yes |
File transcoding task ID. |
https://docs-api.zego.im/?Action=DescribeTranscodeStatus
&AppId=1234567890
&SignatureNonce=15215528852396
&Timestamp=1234567890
&Signature=7a2c0f11145fb760d607a07b54825013
&SignatureVersion=2.0
&IsTest=false
{
"TaskId": "task"
}
Parameter | Type | Description |
---|---|---|
Code |
Int64 |
Error code. |
Message |
String |
Error description. |
RequestId |
String |
Request ID. |
Data |
Object |
Response object. For details, see Data member list. |
The following table lists data members.
Parameter | Type | Description |
---|---|---|
FileHash |
String |
Hash value of the source file. |
FileType |
Int64 |
Source file type. The options are as follows:
|
DestinationFileType |
Int64 |
Target file type. The options are as follows:
|
FileName |
String |
Source file name. |
FileSize |
Int64 |
Size of the source file, in bytes. |
Status |
Int64 |
File transcoding status. For details, see Status . |
FileId |
String |
File ID returned after successful transcoding. |
The following table lists the values of Status.
Status code | Description |
---|---|
1 | Not uploaded. |
2 | Uploaded. |
4 | Queuing. |
8 | Transcoding. |
16 | Transcoding succeeded. |
32 | Transcoding failed. |
64 | Transcoding task canceled. |
128 | Password-protected file. |
256 | The file is too large, for example, containing too many pages. |
512 | The Excel file contains too many sheets. |
1024 | The file is empty. For example, the PowerPoint file contains no slide. |
2048 | The transcoding server failed to open the file. |
4096 | The target file type is not supported. |
8192 | The source file is read-only. |
16384 | The transcoding server failed to download the source file. The possible causes are as follows:
|
32768 | Elements that cannot be processed by transcoding tools detected in the source file, such as ink marks and graffiti. Remove the elements and transcode the file again. |
32769 | The file format of the Word, Excel, or PowerPoint file is invalid. Ensure that the source file can be opened by Office before transcoding the file. |
32770 | A security risk exists in the file to be transcoded. Ensure that no message indicating a computer damage risk for file editing is displayed when you attempt to open the file using Office. |
32771 | After transcoding an animated PowerPoint file, failures in exporting some images and audio and video files are detected. The transcoding server will transcode the file again. |
32772 | The file size is too large to transcode. Ensure that the file size meets the requirements. |
32773 | A dialog indicating that the file needs to be repaired (because the file is damaged) is displayed when you attempt to open the file. |
32774 | EOF error (incomplete file content). |
{
"Code": 0,
"Message": "succeed",
"RequestId": "abcd123",
"Data": {
"FileHash": "abc",
"FileType": 1,
"DestinationFileType": 256,
"Status": 8,
"FileId": "fiaaaa"
}
}
Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.
Return code | Description |
---|---|
60013 |
The file has been transcoded. |
60014 |
The file transcoding task ID does not exist. |
60015 |
The source file type is not supported. |