Usando Haneke para almacenar en caché y luego reproducir archivos MP4 con AVPlayer

Estoy buscando ayuda para resolver lo que parece un problema simple, pero parece que no puedo resolverlo.

Estoy usando Haneke de Cocoapods para almacenar en caché los archivos MP4 de la URL (en mi servidor) y luego reproducir la versión en caché usando AVPlayer. Estoy configurando un AVPreviewLayer dentro de un UICOllectionViewCell y ejecuto este código. El problema es que el reproductor no reproducirá el video inicialmente, pero lo reproducirá nuevamente en el futuro (después de volver a esa celda en la vista uicollection)

           let getUrl = NSURL(string: location)

            cache.fetch(URL: getUrl!).onSuccess { (data) in

                // Hacky way of getting cache URL from Haneke
                let basePath = DiskCache.basePath().stringByAppendingPathComponent("shared-data/original/")
                let path = DiskCache(path: basePath, capacity: UINT64_MAX).pathForKey(getUrl!.absoluteString)
                let fileURL = NSURL(fileURLWithPath: path)

                self.player = AVPlayer(URL: fileURL)

                let playerLayer = AVPlayerLayer(player: self.player)

                playerLayer.frame = self.view.bounds

                cell.videoView.layer.addSublayer(playerLayer)

                print("Playing video")

                self.player.play()

            }

Respuestas a la pregunta(0)

Su respuesta a la pregunta