A screen show short video using AVPlayer in my IOS app. I leave and re-enter this screen few times successfully but after seven times and more I get blank screen and AVPlayerLayer's IsReadyForDisplay property is 'NO'.
I pause AVPlayer(and set to nil) and remove AVPlayerLayer from view's layer when I leave this screen . It seem to me that it not memory use issue(17Mb usage).
I think the problem is AVPlayer buffer or maybe other component that cause a block that way AVPlayer can't read from video file , but I didn't find any way to clean/or clear this buffer/block.
Is anyone had this problem before?Or know why do i get this blank screen in seventh entrance?
Thanks in advance,
Eli