DJI Mobile SDK Documentation

      class MediaFileDownloadListener

      interface MediaFileDownloadListener
      Package:dji.v5.manager.datacenter.media
      Description:

      Listener of media file download.

      Supported since MSDK 5.0.0

      Class Members:
      method
      method onStart
      void onStart()
      Package:dji.v5.manager.datacenter.media
      Description:

      When the media file starts downloading, this method will be called back.

      Supported since MSDK 5.0.0

      method onProgress
      void onProgress(long total, long current)
      Package:dji.v5.manager.datacenter.media
      Description:

      When the edia file download progress changes, this method will be called back.

      Supported since MSDK 5.0.0

      Input Parameters:
      long totalThe total number of bytes of media file to be downloaded.
      long currentBytes of downloaded media files.
      method onRealtimeDataUpdate
      void onRealtimeDataUpdate(byte[] data, long position)
      Package:dji.v5.manager.datacenter.media
      Description:

      When the media file data is downloaded, this method will be called back.

      Supported since MSDK 5.0.0

      Input Parameters:
      byte[] dataThe media file data download from camera by byte.
      long positionThe byte offset into the meida file at which the data starts.
      method
      method onFinish
      void onFinish()
      Package:dji.v5.manager.datacenter.media
      Description:

      When the media file is downloaded, this method will be called back.

      Supported since MSDK 5.0.0

      method
      method onFailure
      void onFailure(IDJIError error)
      Package:dji.v5.manager.datacenter.media
      Description:

      when an error occurs in the media file downloading, this method will be called back.

      Supported since MSDK 5.0.0

      Input Parameters:
      IDJIError errorMedia file download error.