DJI Mobile SDK Documentation

      class MediaFileInfo

      class MediaFileInfo implements Serializable
      Package:dji.sdk.media
      Description:

      This class contains information about newly generated media file.

      Class Members:
      Callback
      class
      Information
      method
      method getMediaType
      MediaFile.MediaType getMediaType()
      Package:dji.sdk.media
      Description:

      Returns the type of media file.

      Return:
      MediaFile.MediaTypeAn enum value of MediaType.
      method
      method getIndex
      int getIndex()
      Package:dji.sdk.media
      Description:

      Returns the index of media file. This is the only identifier of the media file. You can use this index to match the index obtained by the getSDCardFileListSnapshot or getInternalStorageFileListSnapshot, and then you can get more information about the new media file, such as the file name, etc.

      Return:
      intAn int value of media file index.
      method getFileSize
      long getFileSize()
      Package:dji.sdk.media
      Description:

      Returns the size, in bytes, of the media file.

      Return:
      longSize of media file.
      method getTimeCreated
      long getTimeCreated()
      Package:dji.sdk.media
      Description:

      Returns the time when the media file was created as a long type, unit: second. You can convert the second to date and time format on your own.

      Return:
      longA long value of the media file created date.
      method getStreamSourceCamera
      CameraVideoStreamSource getStreamSourceCamera()
      Package:dji.sdk.media
      Description:

      Returns the stream source of media file.

      Return:
      CameraVideoStreamSourceAn enum value of CameraVideoStreamSource.