ChangbaDevs / KTVHTTPCache

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

possible for API to customize filenameGenerator and cache file destination? #146

Closed flyinghawker closed 3 years ago

flyinghawker commented 3 years ago

As idea from AndroidVideoCache, providing filenameGenerator and storageStrategy is very practical for different types of videos or audio, such as type of normal feed or that for message, which require local permanent storage. Thanks for your job any way!

flyinghawker commented 3 years ago

KTVHCDataNetworkSource -> (void)ktv_download:(KTVHCDownload )download didReceiveResponse:(KTVHCDataResponse )response -> NSString *path = [KTVHCPathTool filePathWithURL:self.request.URL offset:self.request.range.start]; here is the entry to configure custom cache destination.