dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
578 stars 255 forks source link

`.resolution` in `DJIMediaFile`from `func camera(_ camera: DJICamera, didGenerateNewMediaFile newMedia: DJIMediaFile)` #371

Open pskow opened 4 years ago

pskow commented 4 years ago

Hello! I'm trying to obtain video resolution once new file is created. Unfortunately, there is little information about this file during saving. Is there any way I could obtain .resolution in func camera(_ camera: DJICamera, didGenerateNewMediaFile newMedia: DJIMediaFile) ?

This is how it looks now -

Screenshot 2020-06-29 20 36 00
dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #36360:

Dear Customer,

Thank you for contacting DJI. Sorry that the MSDK doesn't support to fetch the resolution of picture. But you can fetch them in the drone's manual.

Thanks,

Luce Luo DJI Dev Team

pskow commented 4 years ago

@dji-dev this is not what I meant. The problem is that in this delegate function DJIMediaFile has almost no information in it. When you fetch those files from sd card or internal storage, all DJIMediaFile have all those informations, but not in this delegate function. I need resolution there, since fetching this media file after it saves is not efficient implementation and can't be done if recording continues.