1. 17 Mar, 2022 5 commits
  2. 16 Mar, 2022 5 commits
  3. 15 Mar, 2022 5 commits
  4. 14 Mar, 2022 3 commits
  5. 10 Mar, 2022 1 commit
  6. 24 Mar, 2022 5 commits
  7. 15 Mar, 2022 2 commits
  8. 09 Mar, 2022 14 commits
    • Transformer GL: Rename TexCoords to TexSampleCoords. · 0587a4f9
      The variable marks the coordinates used to sample from a texture, so hopefully
      this makes the naming a bit more descriptive.
      
      This renames vTexCoords and aTexCoords. No functional changes intended.
      
      PiperOrigin-RevId: 433499934
      huangdarwin committed
    • Transform map of AdsLoader.State to a Bundle · e531e788
      This fixes an exception thrown when parceling becasue the type can not be found
      (expects the AdsPlaybackState to be Serializable). Transforming the map and the
      ad playback states to a Bundle fixes the problem.
      
      #minor-release
      
      PiperOrigin-RevId: 433491993
      bachinger committed
    • Version bump to exoplayer:2.17.1 and media3:1.0.0-alpha03 · 58324934
      #minor-release
      
      PiperOrigin-RevId: 433467068
      (cherry picked from commit af6f6bb4)
      ibaker committed
    • Transformer GL: Remove unused setResolution exception javadoc. · d06d690d
      PiperOrigin-RevId: 433467719
      huangdarwin committed
    • Version bump to exoplayer:2.17.1 and media3:1.0.0-alpha03 · af6f6bb4
      #minor-release
      
      PiperOrigin-RevId: 433467068
      ibaker committed
    • Avoid rebuffering at the end of SSAI post-rolls · e5d14667
      When the start position of a MediaPeriodInfo is equal or higher than the duration,
      we set the start position to `duration - 1` to end on the last frame. With server
      side inserted ad streams, this has the effect that we actually need to seek back to
      the last content frame after a post-roll.
      
      This is desirable when actually ending on that frame but produces a BUFFERING event
      when transitioning from an SSAI stream with a post-roll to the next media item in
      the playlist. This change sets the start position to the duration when we are
      clipping the last content period of an SSAI stream that is played in a playlist.
      
      PiperOrigin-RevId: 433445680
      bachinger committed
    • Use background thread for FrameEditor's OpenGL calls. · 140be836
      If an OpenGL call blocks because the encoder's input surface is full,
      this will now block the background thread while the main thread can
      continue querying encoder output and free up encoder capacity until
      it accepts more input unblocking the background thread.
      
      PiperOrigin-RevId: 433283287
      hschlueter committed
    • Rollback of https://github.com/androidx/media/commit/aa22bc2dbeb01fbe3a9905adc8e87a859a3f3dca · 98e039d8
      *** Original commit ***
      
      Fix PlayerView touch handling
      
      Overriding onTouchEvent was causing multiple issues, and
      appears to be unnecessary. Removing the override fixes:
      
      1. StyledPlayerView accessibility issue where "hide player
         controls" actually toggled play/pause.
      2. Delivery of events to a registered OnClickListener when
         useController is false.
      3. Delivery of events to a registered OnLongClickListener
         in all configurations.
      4. Incorrectly treating a sequence of touch events that
         exit the bounds of the vi...
      
      ***
      
      PiperOrigin-RevId: 433262414
      olly committed
    • Disable calculating SSIM on instrumentation tests. · 3ef4f6ff
      PiperOrigin-RevId: 433237266
      samrobinson committed
    • Only COMMAND_PLAY starts the service in the foreground · b94ca4f2
      This change makes all notification actions start MediaSessionService
      in the background except COMMAND_PLAY which starts the service
      in the foreground. This is to avoid ANRs that are raised if we don't
      call MediaSessionService.startForeground() within 5 seconds since the
      service was started in the foreground.
      
      We only call MediaSessionService.startForeground() when
      Player.getPlayWhenReady() returns true, and only COMMAND_PLAY sets
      playWhenReady to true.
      
      Issue: androidx/media#20
      
      #minor-release
      
      PiperOrigin-RevId: 433229604
      christosts committed
    • Improve resolution fallback logic. · 2f4630a8
      With the new version, we try the following before fixing resolution:
      
      - Fix size alignment
      - Try 3/4 the width and height
      - Try 2/3 the width and height
      - Try 1/2 the width and height
      
      Also: align the resolution ends in 1 or 9 to 0.
      PiperOrigin-RevId: 433206358
      claincly committed
    • Nit cleanup of SsimHelper. · a349f311
      PiperOrigin-RevId: 433174767
      samrobinson committed
    • Custom notification actions start the service in background · fae8097a
      PiperOrigin-RevId: 433172330
      christosts committed
    • Fix PlayerView touch handling · aa22bc2d
      Overriding onTouchEvent was causing multiple issues, and
      appears to be unnecessary. Removing the override fixes:
      
      1. StyledPlayerView accessibility issue where "hide player
         controls" actually toggled play/pause.
      2. Delivery of events to a registered OnClickListener when
         useController is false.
      3. Delivery of events to a registered OnLongClickListener
         in all configurations.
      4. Incorrectly treating a sequence of touch events that
         exit the bounds of the view before ACTION_UP as a click,
         both for delivery to OnClickListener and for toggling
         the controls.
      
      Note: After this change, control visibility will not be
      toggled if the application developer explicitly sets the
      view to be non-clickable. I think that's probably working
      as intended though. It seems correct that a non-clickable
      view would not respond to clicks.
      
      Issue: google/ExoPlayer#8627
      Issue: google/ExoPlayer#9605
      Issue: google/ExoPlayer#9861
      PiperOrigin-RevId: 433016626
      olly committed