dji-sdk / Mobile-SDK-iOS

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

DJICamera delegate function doesn't recognize thermal camera #373

Open pskow opened 3 years ago

pskow commented 3 years ago

Hello! This is the issue specific to DJI Mavic 2 Enterprise Dual. When I'm trying to check in DJICamera's delegate function func camera(_ camera: DJICamera, didGenerateNewMediaFile newMedia: DJIMediaFile) what type of camera generated video, it always says Mavic 2 Enterprise Dual-Visual when file is clearly from Mavic 2 Enterprise Dual-Thermal camera.

Please let me know if there is ANY way to distinguish which camera generated DJIMediaFile or check any other properties which tells if file comes from thermal camera.

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #37213:

Dear Customer,

Thank you for contacting DJI. Sorry, for the M2ED drone, there is no obvious method/property to distinguish which camera generated file. But the thermal file generated after the visual one usually, so maybe you can use timeCreated property to distinguish it.

Thanks,

Luce Luo DJI Developer Support

pskow commented 3 years ago

@dji-dev Is there any other way to recognize video from thermal camera? Unfortunately, there are cases where thermal video is saved before thermal one. Fetching DJIMediaFile when camera is recording is not possible, and for the videos which are sliced around 4Gb there is no way to tell if the video is thermal or not. This is very urgent issue for me. Please let me know if there is any other solution, because I'm completely stumped at this.

pskow commented 3 years ago

@dji-dev is there any movement around this issue?

pskow commented 3 years ago

@dji-dev is there any chance it's fixed in 4.14?

pskow commented 3 years ago

Hello @dji-dev - are there any updates regarding this issue?

pskow commented 3 years ago

@dji-dev hello, any news regarding this issue? :)

DJI-William commented 2 years ago

This was a 2 years old issue, I think it is a bug, I will report to the dev team about this. The camera:didGenerateNewMediaFile's camera input should specify which camera is it.