Caching work great and thank you for this lib, but it doesn't seem to stream (playing) while caching.
It looks like it wait for caching to be available at 100% and only then start to play the video. (Which is longer than just stream in via URL and start playing the first chunks available).
Is it normal behavior or is it a malformed code I've wrote ?
HttpProxyCacheServer proxy = VideoProxyFactory.getProxy(this);
proxy.registerCacheListener(new CacheListener() {
@Override
public void onCacheAvailable(File cacheFile, String url, int percentsAvailable) {
if(percentsAvailable<100)
{
mPercentageOfVideo.setText(percentsAvailable+"%");
mPercentageOfVideo.setVisibility(View.VISIBLE);
}
else
{
mPercentageOfVideo.setText("100%");
mVideoSharePath=cacheFile.getAbsolutePath();
}
}
}, mVideoUrl);
mVideoUrl = proxy.getProxyUrl(mVideoUrl);
Caching work great and thank you for this lib, but it doesn't seem to stream (playing) while caching.
It looks like it wait for caching to be available at 100% and only then start to play the video. (Which is longer than just stream in via URL and start playing the first chunks available).
Is it normal behavior or is it a malformed code I've wrote ?