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

CacheDataSource guarantees #956

Closed
amoussawi opened this issue Nov 13, 2015 · 1 comment
Closed

CacheDataSource guarantees #956

amoussawi opened this issue Nov 13, 2015 · 1 comment
Labels

Comments

@amoussawi
Copy link

hello :-)
if I integrated my datasource inside a cachedatasource...and let's say the range 0-8000 was read at first and it succeeded and then the range 3000-8000 was requested again...does the cachedatasource give any guarantee that the range 3000-8000 will be read from the cache not from the upstream datasource?
another question how BUFFER_SEGMENT_SIZE and BUFFER_SEGMENT_COUNT should be assigned?

@ojw28
Copy link
Contributor

ojw28 commented Nov 13, 2015

CacheDataSource currently only works for bounded range requests. Unless you're implementing VOD DASH this is probably not the type of request that the player is issuing, in which case CacheDataSource may not do any caching at all. There is an issue tracking making CacheDataSource more generally useful (#420).

In general, it's not feasible to make hard guarantees about when cache hits/misses occur. For example, the device might have no free space into which media can be cached. So you should always assume that a request might need to go to the network.

@ojw28 ojw28 closed this as completed Nov 13, 2015
@ojw28 ojw28 added the question label Nov 13, 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
Projects
None yet
Development

No branches or pull requests

2 participants