1. 17 Jan, 2020 6 commits
  2. 16 Jan, 2020 22 commits
  3. 13 Jan, 2020 7 commits
    • Simplify keeping track of current id in DefaultPlaybackSessionManager · c0ee312a
      We currently have a currentMediaPeriodId and an activeSessionId that are more
      or less tracking the same thing unless the current media period isn't "active" yet.
      
      Simplify this logic by using a single currentSessionId field and the respective
      isActive flag of this session. Also move all session creation and activation code in
      the same method to make it easier to reason about the code.
      
      This change also fixes a subtle bug where events after a seek to a new window
      are not ignored as they should.
      
      PiperOrigin-RevId: 289432181
      tonihei committed
    • DownloadService: No-op cleanup · ad7bcab4
      Issue: #6798
      PiperOrigin-RevId: 289424582
      olly committed
    • Add a clarifying comment to shouldContinueLoading handling. · 3c5c43c9
      PiperOrigin-RevId: 289424321
      tonihei committed
    • Deprecate DownloadService state change methods · d7643acd
      As discovered whilst investigating #6798, there are cases
      where these methods are not correctly. They were added as
      convenience methods that could be overridden by concrete
      DownloadService implementations, but since they don't work
      properly it's preferable to require application code to
      listen to their DownloadManager directly instead.
      
      Notes:
      
      - The original proposal to fix #6798 stored the state change
      events in memory until they could be delivered. This approach
      is not ideal because the events still end up being delivered
      later than they should be. We also want to fix the root cause
      in a different way that does not require doing this.
      - This change does not fix #6798. It's a preparatory step.
      
      Issue: #6798
      PiperOrigin-RevId: 289418555
      olly committed
    • PlayerTrackEmsgHandler: Release sample queue in release() · 15f974a2
      This change makes it clear the SampleQueue doesn't outlive
      the wrapping PlayerTrackEmsgHandler, and releases it from
      PlayerTrackEmsgHandler.release().
      
      This change is a no-op because calling release() is the
      same as reset() in this case (the behavior only differs if
      a non-dummy DrmSessionManager is being used).
      
      PiperOrigin-RevId: 289416622
      olly committed
    • Split HlsSampleStreamWrapper.init into two methods · 7f7632a3
      As a result, onMediaChunkLoadStarted gets invoked on the loading thread, and
      init on the playback thread, matching the thread access comments.
      
      Issue:#6321
      PiperOrigin-RevId: 289167981
      aquilescanta committed
    • Add NTP client to get time offset for live streams without UTCTiming. · 01e661f2
      Dash live streams require that the client has an accurate wall clock
      time and in absence of a UTCTiming element, this is assumed to be the
      NTP time.
      
      This change adds NTP time offset resolution for DASH live streams
      without such timing elements.
      
      PiperOrigin-RevId: 289098796
      tonihei committed
  4. 10 Jan, 2020 5 commits