dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
997 stars 580 forks source link

product.camera.mediaManager.fileListSnapshot missing dng files if camera mode was set to SettingsDefinitions.PhotoFileFormat.RAW_AND_JPEG #264

Open MAX-POLKOVNIK opened 6 years ago

MAX-POLKOVNIK commented 6 years ago

To reproduce:

  1. Set camera file format like this
    product.camera.setPhotoFileFormat(SettingsDefinitions.PhotoFileFormat.RAW_AND_JPEG, {
            if (it != null) {
                showToast("Error set format: $it")
            } else {
                showToast("File format changed")
            }
        })
  2. Take a several photos.
  3. Refresh file list:
    product.camera.mediaManager.refreshFileList(this)
  4. Handle changes in callback and print to logcat:
    product.camera.mediaManager.fileListSnapshot.forEach {
            Log.d("AwesomeApp","FILE :: ${it.fileName}")
        }

    Output:

    FILE :: DJI_0288.jpeg
    FILE :: DJI_0289.jpeg
    FILE :: DJI_0290.jpeg

Files on drone SDCARD: image

How to get DNG files to display? Also if file format SettingsDefinitions.PhotoFileFormat.RAW or SettingsDefinitions.PhotoFileFormat.JPEG it's okey. List contains files created while these formats was set.

Used: DJI Android 4.4.1 Mavic Pro OnePlus 5 (Android 8.0) Galaxy A7 2016 (Android 7.0) Android Studio 3.0.1

MAX-POLKOVNIK commented 6 years ago

Still missing dng files with SDK 4.5

Michael-DJI commented 6 years ago

@MAX-POLKOVNIK sorry, the feature you needed is not supported in firmware layer, but we will try to talk with the firmware team about this, thanks for your feedback!