媒体文件上传结果部分字段属性官方api文档未提供
Completed原有demo逻辑在接收文件上传数量时,是判断上传消息条数来实现的,但是会有乱序与并发问题,所以后续开发时,我们替换成了从flight_task 结构内拿数据,但是测试下来却出现有如下这种flight_task结果的返回,这里会出现这种返回的原因是什么呢?而且官方上云api文档也未补充,包括(1.8版本的文档)
{
"bid": "XXXXX",
"data": {
"file": {
"cloud_to_cloud_id": "DEFAULT",
"ext": {
"drone_model_key": "xxx",
"flight_id": "xxx",
"is_original": true,
"payload_model_key": "xxx"
},
"metadata": {
"absolute_altitude": xxx,
"created_time": xxx",
"gimbal_yaw_degree": -95.6,
"relative_altitude": xxx,
"shoot_position": {
"lat": xxx,
"lng": xxx
}
},
"name": "xxx",
"object_key": "xxx",
"path": ""
},
// 这一部分未收录
"flight_task": {
"expected_file_count": 0,
"flight_type": -1,
"uploaded_file_count": 0
},
"progress": 0,
"result": 0
},
"method": "file_upload_callback",
"need_reply": 1,
"tid": "xxx",
"timestamp": xxx,
"gateway": "xxx"
}
Please sign in to leave a comment.
Comments
9 comments