Comments (4)
Hi @qw9685, the DJI Phantom 3 Advanced doesn't support playback mode(DJIPlaybackManager), you can use DJIMediaManager to download the photos and videos from the SD card instead. Hope this help, thanks!
from mobile-sdk-ios.
I use the way you say: in the method of retrieving the video, setMediaList settings are
for (DJIMedia* media in self.mediaList) {
if (media.mediaType == DJIMediaTypeMP4||media.mediaType == DJIMediaTypeMOV||media.mediaType == DJIMediaTypeM4V) { // 获取MP4文件
self.imageMedia = media;
break;
}
}
and then
-
(IBAction)onShowFullImageButtonClicked:(id)sender {
[self.showFullImageButton setEnabled:NO];WeakRef(target);
__block NSMutableData* downloadData = [[NSMutableData alloc] init];[self.imageMedia fetchMediaDataWithCompletion:^(NSData *data, BOOL *stop, NSError *error) {
WeakReturn(target);
if (error) {
ShowResult(@"ERROR: fetchMediaDataWithCompletion:. %@", error.description);
[self.showFullImageButton setEnabled:YES];
}
else {
[downloadData appendData:data];
if (downloadData.length == target.imageMedia.fileSizeInBytes) {
dispatch_async(dispatch_get_main_queue(), ^{
WeakReturn(target);
// [target showPhotoWithData:downloadData];
ShowResult(@"正在写入文件");
[downloadData writeToFile:[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/audio.mp4"] atomically:YES];
[self.showFullImageButton setEnabled:YES];}); } } [self.showFullImageButton setEnabled:YES];
}];
}
from mobile-sdk-ios.
Is this method right? Why is it very slow..
from mobile-sdk-ios.
Hi @qw9685, yes, it would become slow when you download video files (Especially big size) from the drone.
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.