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

请教一下,为什么getProxyUrl方法删除了isAlive的判断呢 #839

Open
ThugKd opened this issue Nov 10, 2023 · 1 comment
Open

Comments

@ThugKd
Copy link

ThugKd commented Nov 10, 2023

查看源码发现和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;
}

@Doikki
Copy link
Owner

Doikki commented Nov 24, 2023

服务器请求太快会报错,导致抖音预加载会请求不到数据

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

2 participants