1. 23 Feb, 2021 4 commits
    • De-duplicate DRM acquire & release events by EventDispatcher · 623597ad
      When we add DRM pre-acquire support to SampleQueue, we'll dispatch
      twice the number of acquire and release events. This is slightly
      confusing, since there's the same number of
      DrmSessionManager#acquireSession() calls.
      
      We can mitigate this by only dispatching each acquire and release
      event to at most one EventDispatcher.
      
      This also changes the events fired when playing a stream with both audio
      and video encrypted with the same keys (even without pre-acquisition).
      
      Before: The EventDispatcher would see 2 aquires, 1 key load and 2
      release events.
      
      After: The EventDispatcher will see 1 acquire, 1 key load and 1 release.
      PiperOrigin-RevId: 358804502
      ibaker committed
    • Add @Documented to FieldNumber @IntDef · 0eed19d8
      PiperOrigin-RevId: 358799813
      gyumin committed
    • Lower minSdkVersion to 16 for media2 extension · ff269403
      From media2 1.1.0, it supports API level 16 and above.
      
      PiperOrigin-RevId: 358797986
      gyumin committed
    • Simplify release event logic in DefaultDrmSession · 8d942dc2
      This is a no-op assuming the class is always used correctly.
      When release causes referenceCount to reach zero there can be at most
      one EventDispatcher still connected (which is the one that must be
      passed to that final release() call), so we can always pass the event
      directly to the EventDispatcher passed in to release().
      
      PiperOrigin-RevId: 358794004
      ibaker committed
  2. 22 Feb, 2021 6 commits
  3. 19 Feb, 2021 22 commits
  4. 12 Feb, 2021 8 commits