1. 15 Mar, 2022 4 commits
  2. 14 Mar, 2022 3 commits
  3. 10 Mar, 2022 1 commit
  4. 24 Mar, 2022 5 commits
  5. 15 Mar, 2022 2 commits
  6. 09 Mar, 2022 19 commits
  7. 08 Mar, 2022 6 commits
    • Ignore MetadataRenderer when evaluating SSAI period transitions · dc83fae1
      This makes the reading period advance early as expected at the end of an ad
      period. Before this change the reading position of the metadata renderer
      prevented advancing the period until metadata arrived after the start position of
      the following period. Only then the reading position of the metadata renderer
      is updated and beyond the start position of the following period which is a
      condition to advance the reading period.
      
      Because transitioning to the next period is a virtual transition and the
      SharedMediaPeriod keeps reading from the same underlying sample streams, the
      metadata renderer can safely be ignored for this check.
      
      #minor-release
      
      PiperOrigin-RevId: 432646037
      (cherry picked from commit c7c75173)
      bachinger committed
    • Start playback from notification · c56c6a2e
      This change fixes two bugs where MediaSessionServe shows a notification
      with the Play icon but tapping it will not start playback:
      1. After playback ends: we need to seek to the beginning of the media
         item.
      2. After adding media items to the player but not starting playback:
         We need to call Player.prepare() too.
      
      PiperOrigin-RevId: 432469953
      (cherry picked from commit 1023b9d5)
      christosts committed
    • Misc cleanup in session tests · 4456a865
      PiperOrigin-RevId: 432430345
      (cherry picked from commit 8e98187a)
      christosts committed
    • Remove media3 PlayerView javadoc references to overriding layouts · 50550ab1
      These should have been removed as part of https://github.com/androidx/media/commit/1391b7c65dab1856dad363dff7c0a250245f1671, since we no
      longer officially support overriding the layout file for this class.
      
      This class is known as StyledPlayerView in exoplayer2.
      
      #minor-release
      
      PiperOrigin-RevId: 432411322
      (cherry picked from commit a353b333)
      ibaker committed
    • Remove CountDownLatch from MockPlayer · 25004f89
      The MockPlayer has a single CountDownLatch field and multiple boolean
      flags that track if a player method was called. Upon calling the methods
      the latch count. Tests set the latch count to match exactly with the
      number of expected player interactions then block the test thread until
      the latch reaches zero and assert the respective method flags are true.
      
      This is subject to false positives. If the underneath implementation
      changes and call more player method, then the test thread will unblock
      as soon as a certain number of interactions is performed, which may be
      less than what the test expected originally. However, the test may stil
      pass if the player thread had enough time to update the expected method
      flag.
      
      This change removes the single CountDownLatch and the boolean flags and
      instead it adds APIs to query the MockPlayer if a method has been called
      and await until a method is called. Internally, the MockPlayer has a
      ConditionVariable per method.
      
      PiperOrigin-RevId: 432399077
      (cherry picked from commit 45d51216)
      christosts committed
    • Fix E-AC3 output capability check without sample rate · 7afaf974
      #minor-release
      
      PiperOrigin-RevId: 432189509
      (cherry picked from commit a73a9e9c)
      andrewlewis committed