Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CodeSlaveZhang opened this issue Feb 23, 2020 · 0 comments
Open

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

CodeSlaveZhang opened this issue Feb 23, 2020 · 0 comments

Comments

@CodeSlaveZhang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant