1. 13 Apr, 2019 5 commits
    • Allow ContainerMediaChunks to provide their own TrackOutputProvider. · 2d7b9d87
      Adding a protected method for that allows to supply a customized
      TrackOutputProvider to the ExtractorWrapper used by the ContainerMediaChunk
      (e.g. for logging purposes).
      
      The alternative would be to provide a  TrackOutputProvider through the
      ChunkSampleStream constructor, but the extra initialization taking place
      in the ChunkSampleStream constructor would need to move somewhere else and
      some methods of BaseMediaChunkOutput would need to move to the
      TrackOutputProvider interface. This seems too much effort for niche
      customization case.
      
      PiperOrigin-RevId: 242448776
      tonihei committed
    • Fix bug when caching from non-zero position · 66e416b6
      The position should be subtracted from the total content length
      retrieved from the cache in this case, both for iteration and for
      filling out counters.contentLength (for the latter, note not
      doing it this way is inconsistent with what happens when dataSpec
      length is set to a known value).
      
      PiperOrigin-RevId: 242445034
      olly committed
    • Get rid of DownloadState.STATE_REMOVED · 0daaba44
      It's a transient state whose only use is when passing a removed
      download to onDownloadStateChanged. It's a bit strange to have it
      as a proper state, since we end up asserting that it's an invalid
      value in other places.
      
      This change adds an explicit onDownloadRemoved, which allows
      removal of the transient STATE_REMOVED, related assertions, and
      uncertainty when dealing with an @State variable whether it's
      necessary to handle it being STATE_REMOVED.
      
      PiperOrigin-RevId: 242444128
      olly committed
    • Fix most remaining issues with DownloadManager threading · 925dd5aa
      PiperOrigin-RevId: 242439330
      olly committed
    • Make DataIndex accessing code run on internal thread · c17c7221
      This is the last cl of a series of cls that will convert DownloadManager
      threading model as public methods post actions on an internal thread
      which then do the work.
      
      PiperOrigin-RevId: 242437229
      eguven committed
  2. 05 Apr, 2019 18 commits
  3. 01 Apr, 2019 8 commits
  4. 29 Mar, 2019 9 commits