Coder Social home page Coder Social logo

Comments (4)

dji-dev avatar dji-dev commented on June 24, 2024

Hi @jgrantr , thanks for your feedback. This is a known issue. We will investigate and fix it in our future SDK release. Here are the explanations:

The DJI Phantom 3 series, Inspire 1 series and Phantom 4 use the DJI Lightbridge to fetch the media files. When you are fetching a large number of media files(Like 779 as you mentioned), it requires a much more stable Lightbridge communication link. If the link is not stable during the process, it's easy to time out.

Here, we provide you with a temporary solution, you can use the following delegate method of DJICamera to get the latest generated media file and manage them by yourself:

- (void)camera:(DJICamera *_Nonnull)camera didGenerateNewMediaFile:(DJIMedia *_Nonnull)newMedia;

Hope this help!

from mobile-sdk-ios.

jgrantr avatar jgrantr commented on June 24, 2024

Yes, I am aware of that delegate method, but it is an un-tenable solution, as there is no way that I can see in the SDK to be able to re-create a DJIMedia object.

An example will probably illustrate what I am talking about.

I want to take a series of photos, group them together, and then download them. As the photos are taken, I use the camera:didGenerateNewMediaFile: delegate method to save local information about each photo (taken from the DJIMedia object) along with a groupId. Some time later (could be the same run of the app, could be a day later after the app has been re-started), I want to then go and download those media files. I can't download them right when that delegate method gets called, as the camera is in shooting mode, not downloading mode. So, how would I then go download those media files at a later time without first grabbing the DJIMedia objects from the SDK? Those objects don't appear to conform to the NSCoding protocol, so I can't just archive them to disk, and all the properties are read-only, so I can't create a blank DJIMedia object and set the correct properties.

Am I missing something? Am I incorrect that I can't download the images from within that delegate callback?

from mobile-sdk-ios.

dji-dev avatar dji-dev commented on June 24, 2024

Hi @jgrantr, if the app is not restarted, it can still work. You can cache the DJIMedia file, switch the DJICameraMode to DJICameraModeMediaDownload and then invoke the fetchMediaDataWithCompletion: method of DJIMedia to download it.

We will investigate this bug and fix it in the future SDK release.

from mobile-sdk-ios.

Michael-DJI avatar Michael-DJI commented on June 24, 2024

did you resolve your issue with new version?
if not, pls report the issue to [email protected] it's the official channel to request DJI SDK support now.

from mobile-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.