对于Android渐进音频缓存库 [英] Progressive audio caching library for Android
本文介绍了对于Android渐进音频缓存库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是Android的MediaPlayer类,现在的渐进式音频流是这样的:
I'm using an android MediaPlayer class right now for progressive audio streaming like this:
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(audioUrl);
mp.prepare();
mp.start();
但MediaPlayer的类不提供任何缓存,而我总是要做到这一点常规:不必要的网络和废电池
But MediaPlayer class doesn't provide any caching, and I always need to do this routine: unnecessary network and battery waste
所以,有人可以帮我找到了一些图书馆,将提供高速缓存,因为我找不到任何。谢谢
So, can someone help me find some library that will provide caching, because I couldn't find any. Thanks
推荐答案
看我的项目:
- https://github.com/master255/ImmortalPlayer 一个线程读取,发送和保存缓存数据。最简单的方法,最快速的工作。复杂的逻辑 - !最好的办法
- https://github.com/master255/VideoViewCache 简单Videoview与缓存。两个线程游戏和保存数据。坏的逻辑,但如果需要再使用此。
- https://github.com/master255/ImmortalPlayer One thread to read, send and save to cache data. Most simplest way and most fastest work. Complex logic - best way!
- https://github.com/master255/VideoViewCache Simple Videoview with cache. Two threads for play and save data. Bad logic, but if you need then use this.
这篇关于对于Android渐进音频缓存库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文