DJI-Mobile-SDK-Tutorials / Android-MediaManagerDemo

This demo is designed for you to learn how to use the MediaManager to interact with the file system on the SD card of the aircraft's camera. You can use it to preview photos, play videos, download or delete files and so on.
MIT License
25 stars 19 forks source link

Fetch preview image failed: Media download result: the server aborts the downloading #7

Open Asendo316 opened 4 years ago

Asendo316 commented 4 years ago

When i try playing a recorded video from the media manager demo i get this error: Fetch preview image failed: Media download result: the server aborts the downloading what to do please?

dji-dev commented 4 years ago

Public comment from Lisa Fedane in Zendesk ticket #32269:

Can you tell us more about your environment?

Also, you may want to download the main, Android Mobile SDK Sample app to use with your environment and test out what is happening: https://github.com/dji-sdk/Mobile-SDK-Android

Lisa Fedane DJI Developer Support

Asendo316 commented 4 years ago

Public comment from Lisa Fedane in Zendesk ticket #32269:

Can you tell us more about your environment?

  • What drone are you using and what's it's firmware?
  • What Android mobile device are you using and what is the OS version on it?

Also, you may want to download the main, Android Mobile SDK Sample app to use with your environment and test out what is happening: https://github.com/dji-sdk/Mobile-SDK-Android

Lisa Fedane DJI Developer Support

Hello Lisa,

Thank you for your prompt response:

Below are the specifications of my devices:

I am currently making use of the sample app cloned from the repository.

I look forward to hearing from you regarding this issue please.

Ibikunle Adeoluwa. AirSmat Team

uo257724 commented 3 years ago

HI, I have the same problem using the same code of the demo. Any solutions? Sometimes i have the error: Download file FailedThe execution colud not be executed.

Mavic 2 pro -> Firmware: 01.00.0670 SDK 4.14

afunx commented 3 years ago

我也遇到同样问题。但看了DJI Support里的某篇博客。解决了该问题。就是使用internalStorage,而不是使用Demo中的sdcard。在此记录一下,方便后来者。

mediaManager.refreshFileListOfStorageLocation(SettingsDefinitions.StorageLocation.SDCARD, new CommonCallbacks.CompletionCallback() --> mediaManager.refreshFileListOfStorageLocation(SettingsDefinitions.StorageLocation.INTERNAL_STORAGE, new CommonCallbacks.CompletionCallback()

List djiMedias = mediaManager.getSDCardFileListSnapshot(); --> List djiMedias = mediaManager.getInternalStorageFileListSnapshot();