Open
Conversation
|
shuai! |
|
这种方式做缓存的话,会出现一种问题,假如数据包下载一半或者中途出现错误,缓存音频就有问题了。 要做缓存 1:检查音频ID 2:检查URL 3:检查本地和远程数据包,至少字节数得完全一样。 |
Author
|
是的,要服务器提供一个验证,之后计划添加 |
Author
|
用法:如果配置 |
|
非常强烈期待下个版本~ 最好是有能几个解决方法,一个是网络切换或者错误的时候缓存存储,还有一个是断点续传。 |
Author
|
@ftkey 可以在错误处理的 handler 里面调用 |
|
帮忙继续完善一下缓存播放和管理吧。。 现在没次播放都要重新下载一遍文件 缓存就是个摆设 |
# Conflicts: # DOUAudioStreamer.podspec # src/DOUAudioFile.h # src/DOUAudioFileProvider.m # src/DOUSimpleHTTPRequest.m
Fixed Conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1.增加DOUCacheManager,可以配置额外的缓存目录。管理缓存数量。
2.优先加载之前下载过的缓存,不用每次联网获取。