Hi, Please help to advice how to save file to internal storage,  by using MediaFileDownloadListener or other?

已完成

评论

4 条评论

  • 0
    评论操作 固定链接
  • suriyan

    Hi, Thank for your update , I already downloaded by using your recommend example code , but some issue found with MediaFileListState.UPDATING when I pullMediaFileListFromCamera, it is alway UPDATING not change to UP_TO_DATE , stick on this 

    if (mediaFileListState == MediaFileListState.UP_TO_DATE) { <---------- not chane to UP_TO_DATE
                    val data = MediaDataCenter.getInstance().mediaManager.mediaFileListData;
                    mediaFileListData.postValue(data)
                }

     

    0
    评论操作 固定链接
  • suriyan

    I call mediaVM from WaypointV3Fragment.kt 

    it is alway UPDATING not change to UP_TO_DATE ,  But call mediaVM in MediaFragment.kt is worked, can pull image normally.

    import dji.sampleV5.modulecommon.models.MediaVM

    class WayPointV3Fragment : DJIFragment() {
    private val mediaVM: MediaVM by activityViewModels()
    .
    .
    .
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    mediaVM.init();
    mediaVM.pullMediaFileListFromCamera(-1,-1)
    }

    0
    评论操作 固定链接
  • DJI Developer Support
    Is it possible for you to record a video for us?We would greatly appreciate it if you could provide us with more information about the model you are using and the issues you are experiencing. Here is the upload link: https://pan-sec.djicorp.com/s/Q3tWL8PiSGCsicW. The password is dji123. Thank you in advance for your assistance.
    0
    评论操作 固定链接

请先登录再写评论。