Using Haneke to cache then play MP4 files with AVPlayer
问题 I'm looking for some help solving what seems like a simple problem, but I just can't seem to figure it out. I'm using Haneke from Cocoapods to cache MP4 files from URL (on my server) and then play the cached version using AVPlayer. I'm setting up an AVPreviewLayer inside a UICOllectionViewCell and running this code. The issue is that the player won't play the video initially, but it will play it again in the future (after i scroll back to that cell in the uicollectionview) let getUrl = NSURL