VIMediaCache
VIMediaCache copied to clipboard
iOS 13.3 缓存完之后重新播放crash的问题
iOS 13.3 缓存完之后重新播放crash的问题
VIMediaDownloader.m中
- (void)processActions函数
在 if (action.actionType == VICacheAtionTypeLocal) { NSError *error; NSData *data = [self.cacheWorker cachedDataForRange:action.range error:&error];
后面加上判断 即可解决
if (self.cacheWorker.cacheConfiguration.progress == 1) { [self.delegate actionWorker:self didReceiveData:data isLocal:YES]; [self.delegate actionWorker:self didFinishWithError:nil]; return; }