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

Question: can I download only a part of a progressive stream? #4896

Closed
eneim opened this issue Oct 1, 2018 · 3 comments
Closed

Question: can I download only a part of a progressive stream? #4896

eneim opened this issue Oct 1, 2018 · 3 comments
Assignees
Labels

Comments

@eneim
Copy link
Contributor

eneim commented Oct 1, 2018

This is a question, can be a feature request.

This is not limited to progressive stream, but I would like to start from there. Assuming I would like to preload 1/4 or the mp4 file only (so User can start playback immediately on demand, but the App doesn't need to download the whole video), how can I make this done with current Downloader mechanism? If it is not supported yet, do you have any idea about how it can be done?

Sorry if this question is answered before. I did a search but found nothing relevant.

Thanks in advance!

@erdemguven
Copy link
Contributor

It isn't possible to do with Downloader but for progressive streams only you can use CacheUtil.cache() methods. They get a DataSpec in which you can specify the range you can to download.
For an example:
https://medium.com/google-exoplayer/pre-caching-downloading-progressive-streams-in-exoplayer-3a816c75e8f6

@erdemguven erdemguven self-assigned this Oct 1, 2018
@eneim
Copy link
Contributor Author

eneim commented Oct 1, 2018

@erdemguven Got it. Do you have any suggestion for non-Progressive stream (HLS/DASH, etc)?

@erdemguven
Copy link
Contributor

Unfortunately there is currently no way. #1497 tracks this feature.

@google google locked and limited conversation to collaborators Jan 31, 2019
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