{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/997","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/997/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/997/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/997/events","html_url":"https://github.com/google/ExoPlayer/issues/997","id":119348315,"number":997,"title":"cache for dash","user":{"login":"siavashabdoli","id":8090549,"avatar_url":"https://avatars.githubusercontent.com/u/8090549?v=3","gravatar_id":"","url":"https://api.github.com/users/siavashabdoli","html_url":"https://github.com/siavashabdoli","followers_url":"https://api.github.com/users/siavashabdoli/followers","following_url":"https://api.github.com/users/siavashabdoli/following{/other_user}","gists_url":"https://api.github.com/users/siavashabdoli/gists{/gist_id}","starred_url":"https://api.github.com/users/siavashabdoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siavashabdoli/subscriptions","organizations_url":"https://api.github.com/users/siavashabdoli/orgs","repos_url":"https://api.github.com/users/siavashabdoli/repos","events_url":"https://api.github.com/users/siavashabdoli/events{/privacy}","received_events_url":"https://api.github.com/users/siavashabdoli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T09:31:48Z","updated_at":"2015-11-29T16:40:57Z","closed_at":"2015-11-29T16:40:57Z","body":"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?\r\nI try this for audio and video but it does not work.\r\nCache cache = new SimpleCache(context.getCacheDir(), new LeastRecentlyUsedCacheEvictor(1024 * 1024 * 10));\r\n      // Build the video renderer.\r\n      DataSource videoDataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);\r\n      CacheDataSource videoCacheDataSource= new CacheDataSource(cache, videoDataSource, false, false);\r\n      ChunkSource videoChunkSource =new DashChunkSource(videoCacheDataSource,new AdaptiveEvaluator(bandwidthMeter)\r\n              ,LIVE_EDGE_LATENCY_MS,AdaptationSet.TYPE_VIDEO);\r\n"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/160431189","html_url":"https://github.com/google/ExoPlayer/issues/997#issuecomment-160431189","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/997","id":160431189,"user":{"login":"ojw28","id":7881572,"avatar_url":"https://avatars.githubusercontent.com/u/7881572?v=3","gravatar_id":"","url":"https://api.github.com/users/ojw28","html_url":"https://github.com/ojw28","followers_url":"https://api.github.com/users/ojw28/followers","following_url":"https://api.github.com/users/ojw28/following{/other_user}","gists_url":"https://api.github.com/users/ojw28/gists{/gist_id}","starred_url":"https://api.github.com/users/ojw28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojw28/subscriptions","organizations_url":"https://api.github.com/users/ojw28/orgs","repos_url":"https://api.github.com/users/ojw28/repos","events_url":"https://api.github.com/users/ojw28/events{/privacy}","received_events_url":"https://api.github.com/users/ojw28/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T16:40:57Z","updated_at":"2015-11-29T16:40:57Z","body":"Closing because this is neither a bug or feature request (the feature request is already tracked by https://github.com/google/ExoPlayer/issues/420)."}}