dimanche 12 juin 2016

Memory Leak: AVplayerViewController


I am facing memory leaks when we play a video and return back to the parent window. See the screenshot below of readings from allocations tool.enter image description here Every time, when I pop the view controller (showing video) there are some objects related to AVFoundation holding the memory. Interestingly the responsible library of all these objects is AVFoundation. None of the increase in memory is due to objects created in the APP. It is very highly unlikely that there is some problem with such a popular framework. I saw a few examples of AVPlayerViewController over the web but they seem to have the same problem.

Does anyone have any idea what/where is the problem? If anyone wants to replicate this then he can download any of the 2 projects given above. You have to make minor changes in the storyboard for creating root view controller with the navigation controller.


Aucun commentaire:

Enregistrer un commentaire