1. 13 Apr, 2019 9 commits
    • Use DownloadAction.id properly · 47601980
      - Fix ID being dropped when DownloadAction is serialized and
        de-serialized as it's passed to DownloadService
      - Properly set DownloadAction.id when building an action from
        a DownloadState
      - Make ID a required constructor argument. Else it's too easy
        to not propagate it by accident.
      
      PiperOrigin-RevId: 242457831
      olly committed
    • Signal fallback via renderer constructor · 401e20d9
      Remove MediaCodecSelector.DEFAULT_WITH_FALLBACK, as codec selectors
      will need to be able to return a list of decoder infos even when not
      using fallback in a later change. Instead signal that fallback should
      be used via a renderer constructor.
      
      Fallback is always disabled for audio.
      
      PiperOrigin-RevId: 242454172
      andrewlewis committed
    • Provide option to include next/prev button in lock screen/compact mode. · baf00406
      Issue: #5616
      PiperOrigin-RevId: 242452686
      bachinger committed
    • Update initial bitrate estimates. · a6d52d4a
      PiperOrigin-RevId: 242449883
      tonihei committed
    • 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 5 commits