resourceLoaderDemo

https://zhgchgli.medium.com/avplayer-%E5%AF%A6%E8%B8%90%E6%9C%AC%E5%9C%B0-cache-%E5%8A%9F%E8%83%BD%E5%A4%A7%E5%85%A8-6ce488898003

Please note that this GitHub repository is solely a demonstration of my Medium posts, and as such, it is not focused on algorithm or testing implementations.

I have created a library called ZPlayerCacher that implements AVAssetResourceLoaderDelegate. This library can be easily installed and used in your project to enable caching of streaming files in AVPlayer. With ZPlayerCacher, you can optimize playback performance and reduce data usage without having to repeatedly download video content from the server.