MSDK版本4.15.1,固件已更新最新,飞机M300,镜头H20,点击拍照后,刷新获取SD卡图片时,无拍照图片,只...

Completed

Comments

8 comments

  • DJI Developer Support
    没有复现成功,在拍照界面点击按钮拍一次之后,进入回放模式立刻发现显示出了3张照片,你能否拍个视频给我们呢。
    0
    Comment actions Permalink
  • 0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 我这边也测试了没有问题,H20T在10月13日推出了更新的固件,不知道你是否升级了。附件是我的测试视频,如果你还有问题你,尝试把飞机重启再试试。 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • linlin

    固件已经最新了,镜头是h20,不是h20t,而且飞机重启还是无人机重启,都试过了没有效果

    0
    Comment actions Permalink
  • linlin

    补充问题具体固件图片

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 我测试的也是H20最新固件,我这边测试是没有问题的。首先你这里面还有一个问题就是,你在Pilot里面只保留了一组照片,按理来说mediaManagerDemo应该识别2张照片,它却只识别了一张。这也是个问题,建议你把SD卡格式化再试试。 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • linlin

    已经格式化测试,效果和之前一样,通过测试对比,在pilot通过控件拍照是有一组照片有2张WIDE与ZOOM,但是通过遥控器快捷键和Android-MediaManagerDemo的拍照一组照片一张WIDE,现在的问题我想明确一点,Android-MediaManagerDemo这个demo的代码逻辑是否是正常的,这个是大疆github那边提供的MediaManagerDemo,现在按照回复所说,固件环境一致,但您那边测试正常,这样出现的问题代码问题的可能性很大,或者能否帮忙运行下此案例,排除一下,是否是代码问题
    1.

    private void initMediaManager() {
    if (DemoApplication.getProductInstance() == null) {
    mediaFileList.clear();
    mListAdapter.notifyDataSetChanged();
    DJILog.e(TAG, "Product disconnected");
    return;
    } else {
    if (null != DemoApplication.getCameraInstance() && DemoApplication.getCameraInstance().isMediaDownloadModeSupported()) {
    mMediaManager = DemoApplication.getCameraInstance().getMediaManager();
    if (null != mMediaManager) {
    mMediaManager.addUpdateFileListStateListener(this.updateFileListStateListener);
    mMediaManager.addMediaUpdatedVideoPlaybackStateListener(this.updatedVideoPlaybackStateListener);
    if (isMavicAir2() || isM300()) {
    DemoApplication.getCameraInstance().enterPlayback(djiError -> {
    if (djiError == null) {
    DJILog.e(TAG, "Set cameraMode success");
    showProgressDialog();
    getFileList();
    } else {
    setResultToToast("Set cameraMode failed");
    }
    });
    } else {
    DemoApplication.getCameraInstance().setMode(SettingsDefinitions.CameraMode.MEDIA_DOWNLOAD, error -> {
    if (error == null) {
    DJILog.e(TAG, "Set cameraMode success");
    showProgressDialog();
    getFileList();
    } else {
    setResultToToast("Set cameraMode failed");
    }
    });
    }

    if (mMediaManager.isVideoPlaybackSupported()) {
    DJILog.e(TAG, "Camera support video playback!");
    } else {
    setResultToToast("Camera does not support video playback!");
    }
    scheduler = mMediaManager.getScheduler();
    }

    } else if (null != DemoApplication.getCameraInstance()
    && !DemoApplication.getCameraInstance().isMediaDownloadModeSupported()) {
    setResultToToast("Media Download Mode not Supported");
    }
    }
    return;
    }
    2.
    private void getFileList() {
    mMediaManager = DemoApplication.getCameraInstance().getMediaManager();
    if (mMediaManager != null) {

    if ((currentFileListState == MediaManager.FileListState.SYNCING) || (currentFileListState == MediaManager.FileListState.DELETING)){
    DJILog.e(TAG, "Media Manager is busy.");
    }else{

    mMediaManager.refreshFileListOfStorageLocation(SettingsDefinitions.StorageLocation.SDCARD, djiError -> {
    if (null == djiError) {
    hideProgressDialog();

    //Reset data
    if (currentFileListState != MediaManager.FileListState.INCOMPLETE) {
    mediaFileList.clear();
    lastClickViewIndex = -1;
    lastClickView = null;
    }

    mediaFileList = mMediaManager.getSDCardFileListSnapshot();
    if(mediaFileList != null) {
    Collections.sort(mediaFileList, (lhs, rhs) -> {
    if (lhs.getTimeCreated() < rhs.getTimeCreated()) {
    return 1;
    } else if (lhs.getTimeCreated() > rhs.getTimeCreated()) {
    return -1;
    }
    return 0;
    });
    }
    scheduler.resume(error -> {
    if (error == null) {
    getThumbnails();
    }
    });
    } else {
    hideProgressDialog();
    setResultToToast("Get Media File List Failed:" + djiError.getDescription());
    }
    });
    }
    }
    }
    0
    Comment actions Permalink
  • DJI Developer Support
    我对比了我们两个人得代码,你贴的代码和我的代码也是一样,咱们两个用得都是一样得MediaManagerDemo。应该不是代码的问题,你身边是否还有其他飞机或者相机能够测试呢?
    0
    Comment actions Permalink

Please sign in to leave a comment.