-
Notifications
You must be signed in to change notification settings - Fork 1k
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
请教一下,为什么getProxyUrl方法删除了isAlive的判断呢 #839
Comments
服务器请求太快会报错,导致抖音预加载会请求不到数据 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
查看源码发现和AndroidVideoCache比,将Pinger相关的逻辑都删除了,为什么要删除这个逻辑呢?
public String getProxyUrl(String url, boolean allowCachedFileUri) {
if (allowCachedFileUri && isCached(url)) {
File cacheFile = getCacheFile(url);
touchFileSafely(cacheFile);
return Uri.fromFile(cacheFile).toString();
}
return isAlive() ? appendToProxyUrl(url) : url;
}
The text was updated successfully, but these errors were encountered: