VIMediaCache icon indicating copy to clipboard operation
VIMediaCache copied to clipboard

iOS 13.3 缓存完之后重新播放crash的问题

Open CodeSlaveZhang opened this issue 5 years ago • 0 comments

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; }

CodeSlaveZhang avatar Feb 23 '20 13:02 CodeSlaveZhang