Cache HLS video while playing with AVAssetDownloadTask
问题 I am trying cache an HLS stream while I am playing it. I was following the Apple documentation on this (the section Playing Offline Assets): https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html#//apple_ref/doc/uid/TP40016757-CH11-SW1 I've implemented the following method - which should make my HLS streams download while playing: func downloadAndPlayAsset(_ asset: AVURLAsset) { //