AndroidVideoCache
AndroidVideoCache copied to clipboard
Cache support for any video player with help of single line
比如在写入过程中空间不足,至少可以通过子类的onError做些处理
I continue getting the following error in android ``` E/HttpProxyCacheServer: HttpProxyCacheServer error com.danikula.videocache.ProxyCacheException: Error closing socket input stream. Version: 2.7.1 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:287) at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272) at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245) at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54) at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)...
为什么本地有的话还会一直缓存啊,allowCachedFileUri传入false还会一直缓存 public String getProxyUrl(String url, boolean allowCachedFileUri)
The code that caused the exception at com.danikula.videocache.file.FileCache.available(FileCache.java:46) //old code : @Override public synchronized long available() throws ProxyCacheException { try { return (int) dataFile.length(); } catch (IOException e) { throw...
这个框架的原理是:将网络视频的url传给这个框架,框架返还给播放器一个file类型的uri,然后由框架直接开线程进行网络下载,播放器间接的去读取框架下载到本地的数据进行播放。 这样就会有一个很严重的问题:**播放器无法控制缓冲进度!** 例如,一个视频有200M,用户只看了四分之一,假设是50M,目前市面上的播放器大都有设置缓冲进度的功能,这样一来,设置将无效,框架仍然会将完整的200M视频全量下载,用户将耗费大量的数据流量,因为播放器设置的最大缓冲进度是播放器从本地读取的最大缓冲进度,而不是网络下载的进度。 Here's the above content translated automatically with Google Translate,maybe not very accurate, but still worth a look Title : Friends who do video on demand should pay...
如何清理缓存
请问如何才能清理缓存到本地的视频呢?
I found that AndroidVideoCache can cache the m3u8,because i found the cahe file in the disk,but,the player can not play the video,I do not know why? it is a AndroidVideoCache...
com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to http://127.0.0.1:51473/http%3A%2F%2Ffs1.rs.com%2Fgroup3%2FM00%2F0F%2FCB%2FCoSNWldxLVGAUoLMACrklWKXXAk524.m4a