M300+h20 mediaManager.refreshFileListOfStorageLocation获取内...

Completed

Comments

9 comments

  • 781316853
    scheduler.resume的回调mediafiles数量为0
    0
    Comment actions Permalink
  • DJI Developer Support
    M300+H20本身就不支持机身存储,必须从SD卡里面获取相机照片。你要把M300和H20的固件都升级到最新,并且SDK版本升级到4.16才行。
    0
    Comment actions Permalink
  • 781316853

    我知道内置卡不行 但是失败后获取外置卡的媒体数据也不行了

    0
    Comment actions Permalink
  • 781316853
    mediaFiles = mediaManager.getSDCardFileListSnapshot();
    第一次为5
    再次获取为0
    是什么原因
    0
    Comment actions Permalink
  • 781316853

    经过测试只要调用过

    mediaFiles = mediaManager.getInternalStorageFileListSnapshot();

    那么

    mediaFiles = mediaManager.getSDCardFileListSnapshot();  就拿不到数据了
    0
    Comment actions Permalink
  • DJI Developer Support
    你refreshFileListOfStorageLocation了两次没?要获取refreshFileListOfStorageLocation的参数设置为机身,然后你去getInternalStorage,然后再refreshFileListOfStorageLocation一次,参数设置为SD卡,再getSDCardStorage。
    0
    Comment actions Permalink
  • 781316853

    refreshFileListOfStorageLocation调用了的

    0
    Comment actions Permalink
  • DJI Developer Support
    我这边测试是没有出现这个问题的。你尝试用一下这个demo。不插入SD卡的状态运行demo,无卡状态下浏览文件列表,然后插入SD卡,再浏览文件列表,看看能不能成功。 DJI-Mobile-SDK-Tutorials/Android-MediaManagerDemo: This demo is designed for you to learn how to use the MediaManager to interact with the file system on the SD card of the aircraft's camera. You can use it to preview photos, play videos, download or delete files and so on. (github.com)
    0
    Comment actions Permalink
  • 781316853

    已解决 参考demo修改了代码

    0
    Comment actions Permalink

Please sign in to leave a comment.