Comments (4)
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.
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.
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.
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)
- The sdcard is always busy after call refreshFileList HOT 7
- Please remove bitcode support in FFmpeg as soon as possible HOT 6
- DJIWaypointMissionOperator block Camera functions? HOT 1
- Is there a way to extend the object tracking?
- [BUG][M300] SDKCache thread - BAD_ACCESS HOT 22
- Mavic 2 Enterprise Advanced drone model isn't included in list of devices HOT 3
- DJISDKManager.startconnToProd.. doesn't work properly HOT 2
- MediaManager and playVideo function HOT 8
- How should DJIUASRemoteIDManager be used by 3d-party developers? HOT 1
- Swift demo crashes on device connection on iOS 16 HOT 5
- Cannot fetch camera serial number/firmware on M300 RTK (P1 camera) failed HOT 5
- Mavic mini 2 uploadMission error: Execution of this process has timed out HOT 2
- How to check if compass is calibrated using iOS SDK HOT 1
- Confirm gimbal attitudeInDegrees "North Pole" reference HOT 1
- Latest XCode version: Library not found for -lDJIWidget Linker command failed with exit code 1 (use -v to see invocation) HOT 6
- DJI Assistant 2 no longer works for Mac OS 11 or later? HOT 1
- DJISDK 4.16.2 + M300RTK FW 06.01.0100 Fails to recover mission HOT 2
- DJI-SDK 4.16.2 - crash when exiting our app HOT 1
- Cannot run the swift demo on M1 Macbook pro HOT 1
- Add support for privacy manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-sdk-ios.