ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Support partial stream downloads

Open blueslabs opened this issue 8 years ago • 6 comments

This is just a question. Trying to see if it is possible to do prefetch with DASH. Basically we want to preload the cache with a couple of seconds of data before a video is played.

Is DashChunkSource the one we should look into? Can we use it directly and have it fill some data to the CacheDataSource?

blueslabs avatar May 04 '16 04:05 blueslabs

You want to delay the start? setPlayWhenReady(boolean playWhenReady); could be a good starting point.

thomasbreitbach avatar Jun 29 '16 16:06 thomasbreitbach

Hello, I want to know how to cache while playing mp3? thx a lot! @blueslabs

lzyang187 avatar May 11 '17 07:05 lzyang187

For downloading DASH streams, please see: https://medium.com/google-exoplayer/downloading-adaptive-streams-37191f9776e

Currently it isn't possible to download partially. Let's use this issue to track the implementation of this feature.

erdemguven avatar Jul 09 '18 10:07 erdemguven

@tonihei I would also suggest supporting scenario where app will want to download part of the stream but from specific position and not only from the start and give the duration that is requested to download as a parameter

giladna avatar Aug 12 '20 13:08 giladna

Note: We will want any solution to work for both download (we keep a record of it, and retain the downloaded data until the app tells us not to) and pre-caching (fire-and-forget from the application). Gaps we have currently:

  1. Partial downloads (all format types)
  2. Fire-and-forget caching (adaptive format types; CacheWriter already solves this for progressive types).

ojw28 avatar Apr 01 '21 09:04 ojw28

Hello The thread is 4 years old, is there any chance that someday this task will be implemented? Cause it really necessary feature

VeraUvads avatar Aug 03 '22 04:08 VeraUvads