DJICamera delegate function doesn't recognize thermal camera
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.
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
@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.
@dji-dev is there any movement around this issue?
@dji-dev is there any chance it's fixed in 4.14?
Hello @dji-dev - are there any updates regarding this issue?
@dji-dev hello, any news regarding this issue? :)
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.