-
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
Slow HLS stream download #4828
Comments
#4253 may be related. |
@andrewlewis thanks for suggestion. Not sure if it correlates to the issue you linked as this is reproducible by having the Cache folder empty and downloading only one stream. |
I wonder whether the mobile device is relatively slow because the chunk downloads are serialized. #4273 is a feature requests for parallel chunk downloads. I guess one way to investigate this hypothesis would be to start multiple downloads concurrently and look at the total throughput. |
If it's not the SD card then I agree it's probably a dupe of #4273. |
Closing as duplicate. |
Issue description
We have tested the downloading of HLS streams in our app. Although it works fine, time to download stream is huge. Is there an easy way to reduce download time?
On the server-side, everything is hosted on a Google Storage Bucket, served through Google Cloud CDN using HTTP/2 so the hosting should not be the bottleneck.
When doing a quick benchmark on desktop, the first download (before being cached by the CDN) takes 11 minutes, while the second one (after being cached at the nearest edge-location) takes only 3 minutes.
However, when downloading the same file in our app using ExoPlayer, the download takes 22 minutes on the first try and 18 minutes after caching.
We have also tried creating bigger segments and in that case download is much faster, but problem is that seeking when streaming takes more time, so that solution is not optimal at all.
We are also using OkHttpDataSourceFactory with v3.11.0 of OkHttp.
Link to test content
Here is the link where the issue can be reproduced: https://storage.googleapis.com/strillo-demo/hls-test/oldfashioned_girl_1808_librivox.m3u8.
Version of ExoPlayer being used
Exo player v2.8.3.
Device(s) and version(s) of Android being used
Any supported device/version.
The text was updated successfully, but these errors were encountered: