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

cache for dash #997

Closed
siavashabdoli opened this issue Nov 29, 2015 · 1 comment
Closed

cache for dash #997

siavashabdoli opened this issue Nov 29, 2015 · 1 comment

Comments

@siavashabdoli
Copy link

I really need to write effective cache for dash type(or keep it on memory if it's not so large). I want user can seek forward on buffered data without losing data and seek a little backward (for example keep last 2 minutes) that's important because users have bad feeling when they stream some data twice. they pay money for traffic and I know this is not to much but here is user feeling!!! also I write a program for Iranian users and traffic is expensive approximately in Iran. how to do it? which file have to edit? can I use the cache classes in upstream package?how?
I try this for audio and video but it does not work.
Cache cache = new SimpleCache(context.getCacheDir(), new LeastRecentlyUsedCacheEvictor(1024 * 1024 * 10));
// Build the video renderer.
DataSource videoDataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
CacheDataSource videoCacheDataSource= new CacheDataSource(cache, videoDataSource, false, false);
ChunkSource videoChunkSource =new DashChunkSource(videoCacheDataSource,new AdaptiveEvaluator(bandwidthMeter)
,LIVE_EDGE_LATENCY_MS,AdaptationSet.TYPE_VIDEO);

@ojw28
Copy link
Contributor

ojw28 commented Nov 29, 2015

Closing because this is neither a bug or feature request (the feature request is already tracked by #420).

@ojw28 ojw28 closed this as completed Nov 29, 2015
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants