ChangbaDevs / KTVHTTPCache

A powerful media cache framework.
MIT License
2.35k stars 435 forks source link

Precache some of the urls #140

Closed mdeora closed 7 months ago

mdeora commented 4 years ago

Currently there is no provision to precache some urls before they are used.

arvkmr commented 4 years ago

In addition it would be nice if we can precache only specific range of the media. For example precaching a Mb for a file that is 20mb in length so we can start playback with AVplayer instantly when we play the file..

libobjc commented 7 months ago

Use this API to precache.

/**
 *  Create the data loader for the request.
 *
 *  @param request : The request of the expected data.
 *  @return The data loader for request.
 */
+ (KTVHCDataLoader *)cacheLoaderWithRequest:(KTVHCDataRequest *)request;