媒体文件上传结果部分字段属性官方api文档未提供

Completed

Comments

9 comments

  • DJI Developer Support
    expected_file_count 本次任务总共媒体数量 uploaded_file_count 已上传媒体数量 flight_type为0代表航线任务的媒体,1是指令飞行产生的媒体,-1代表无法区分
    1
    Comment actions Permalink
  • Ccwatermagic

    -1 代表无法区分,为啥无法区分的返回逻辑是 "expected_file_count": 0, "uploaded_file_count": 0 这两个0的语义开发者是怎么理解。我能否理解为"flight_type": -1 表示这个媒体文件上传失败,或者上传结果未知?

    0
    Comment actions Permalink
  • DJI Developer Support
    预期一般不会为0,可以截图看看原始消息吗? 关键信息可以模糊处理
    0
    Comment actions Permalink
  • Ccwatermagic

    这是同一个航线中返回的两个json,这条航线只拍一段可见光视频,一段红外视频。其中一个"flight_type": 0,一个返回"flight_type": -1。一个观察到的现象是似乎每次都是_T.mp4文件会返回"flight_type": -1。由于这个航线我们业务有涉及,所以没法更改这条航线的。我们在其他的同类型无人机同固件版本上,飞完航线任务之后,_T.mp4文件返回是正常的,只有这个现场的航线会返回type为-1,然后两个计数值为0。这个现场的特殊性可能在网络不是很稳定,其余的都是一样的

    0
    Comment actions Permalink
  • DJI Developer Support
    返回-1后,oss中有正常上传这条视频吗
    0
    Comment actions Permalink
  • Ccwatermagic

    有的,播放视频也是正常的

    0
    Comment actions Permalink
  • DJI Developer Support
    重新确认了下,flight_task目前是预留的属性。司空2中云云对接用到了这个属性。 上云暂时没用到
    0
    Comment actions Permalink
  • Ccwatermagic

    这个意思是这个字段未来可能会删除或者是会变更吗,或者说是不是开发者不应该使用这个字段结构开发?

    0
    Comment actions Permalink
  • DJI Developer Support
    是的,建议不要使用这个字段开发。
    0
    Comment actions Permalink

Please sign in to leave a comment.