MSDK V5.4.0 Mavic 3 Enterprise getMediaFileList
CompletedHei,
I'm having a problem that after taking a photo, the MediaFileListState changes to "UP_TO_DATE" but when I use getMediaFileListData() the List is always the same and has the same size. So I tried to use pullMediaFileListFromCamera() after the MediaFileListState changes to "UP_TO_DATE", and it works, the list now has the photos which have been taken. But the problem is that using pullMediaFileListFromCamera() after the MediaFileListState changes to "UP_TO_DATE", makes my device's RAM Memory increase even if I dont do anything with the list. And after some time it gives me an error saying that it failed to Allocate Memory.
-
I'm having a problem that after taking a photo, the MediaFileListState changes to "UP_TO_DATE" but when I use getMediaFileListData() the List is always the same and has the same size. --》This is a known issue and we will fix it in version 5.5. And after some time it gives me an error saying that it failed to Allocate Memory. -->Is this a stable occurrence? What device are you using? -
I found the solution, I have to call MediaManager.release() to release resources. -->Yes, both MediaDataCenter.getInstance().mediaManager.release() and mediaFile.release() will release the occupied resources. You need to call them in a timely manner when you no longer need to use them.
Please sign in to leave a comment.
Comments
3 comments