-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Pause/Resume download with HlsDownloader or DashDownloader #3907
Comments
It's recommended to use recently released DownloadManager and DownloadService instead of Downloaders directly. DownloadManager has stopDownloads and startDownloads methods. For Downloaders: You can interrupt the thread which the downloader or CacheUtil method is running: |
@pmunizferreira can you please tell me how you successfully download hls videos my mobile got hanged when onProgress called. here is my email address please contact |
@erdemguven i am stuck at hls downloading your blog is not enough kindly tell me proper way for download video in mobile storage any working code example would be grate full but dont give me a link for demo app its too complicated |
@Waleedasim sorry there isn't a simple hls download example currently. I'll write another post for downloading adaptive streams soon. |
Kindly do it as soon as possible really appreciate your efforts
…On Tue, 15 May 2018 6:12 pm Erdem Guven, ***@***.***> wrote:
@Waleedasim <https://github.com/Waleedasim> sorry there isn't a simple
hls download example currently. I'll write another post for downloading
adaptive streams soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3907 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlTuTfIJiUIUdpWqRVSGU8-tmmkfKOrNks5tytQhgaJpZM4SUQxF>
.
|
Thank you for response :)
…On Tue, 15 May 2018 6:17 pm Waleed Asim, ***@***.***> wrote:
Kindly do it as soon as possible really appreciate your efforts
On Tue, 15 May 2018 6:12 pm Erdem Guven, ***@***.***> wrote:
> @Waleedasim <https://github.com/Waleedasim> sorry there isn't a simple
> hls download example currently. I'll write another post for downloading
> adaptive streams soon.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3907 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AlTuTfIJiUIUdpWqRVSGU8-tmmkfKOrNks5tytQhgaJpZM4SUQxF>
> .
>
|
Hi, I'm using
exoplayer2.source.hls.offline.HlsDownloader
andexoplayer2.source.dash.offline.DashDownloader
to download videos that will be played offline later. I do not need an instance of Exoplayer at this time, just Downloader classes.Are there ways to pause and resume the download?
A simple code to start download (working fine):
I've also tried the
exoplayer2.upstream.CacheUtil
class, but it also has no way to pause/resume downloads.Maybe another class should be used to download videos? vov
thanks.
The text was updated successfully, but these errors were encountered: