I have an application in which I use AVPlayerLayer (used in a subclass of UIView, just like in the Apples AV Foundation Programming Guide). I have several view controllers that are stored in the view controller, which is responsible for the menu (using JASidePanels). The problem is this:
Everything works fine until the View controller with AVPlayers is hidden (another view appears) and the application enters the background, returns and returns to viewing. This causes the AVPlayerLayer to appear empty / transparent. The item is loaded in the same way as I can try to play it, and indeed, it plays, but the video is not visible.
What is the solution to this behavior (and what is its cause)? thanks in advance.
source share