1. 09 Mar, 2022 13 commits
    • Version bump to exoplayer:2.17.1 and media3:1.0.0-alpha03 · 153b16a8
      #minor-release
      
      PiperOrigin-RevId: 433467068
      ibaker committed
    • Avoid rebuffering at the end of SSAI post-rolls · 5bf12316
      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. · f5796b2d
      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/google/ExoPlayer/commit/20282151b5ea0e6a4d94710b3ab2a6806148d056 · ff6e641f
      *** 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. · 82a50154
      PiperOrigin-RevId: 433237266
      samrobinson committed
    • Improve resolution fallback logic. · f40f97fa
      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. · 0770d55c
      PiperOrigin-RevId: 433174767
      samrobinson committed
    • Fix PlayerView touch handling · 20282151
      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
    • Decouple UI module from ExoPlayer · b2a5298e
      This change rewrites the UI module's track selection
      components to depend on the Player API, allowing us to
      finally remove the UI module's dependency on ExoPlayer
      as a concrete player implementation.
      
      PiperOrigin-RevId: 432989318
      olly committed
    • Record transformation duration in TransformerAndroidTestRunner. · 661d7dde
      The change will be useful in testing transcoding performance
      
      PiperOrigin-RevId: 432956283
      claincly committed
    • Remove SSIM calculation on audio only output. · 3877171f
      PiperOrigin-RevId: 432937645
      samrobinson committed
    • Add regression test forcing encode/decode. · 8adc145f
      PiperOrigin-RevId: 432928418
      samrobinson committed
    • Use getSupportedWidth/HeightFor() API for finding resolution. · e5c229be
      Previously, we've used getSupportedHeights/Widths() to find the supported
      resolution. However, the height/width can be over-reported when using these
      APIs. For example, getSupportedWidths and getSupportedHeights can both return
      3840, but the supported height when using 3840 as width is only 2160.
      
      PiperOrigin-RevId: 432926192
      claincly committed
  2. 08 Mar, 2022 1 commit
  3. 05 Mar, 2022 1 commit
    • Ignore MetadataRenderer when evaluating SSAI period transitions · 25e56804
      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
      bachinger committed
  4. 04 Mar, 2022 6 commits
  5. 07 Mar, 2022 3 commits
  6. 03 Mar, 2022 7 commits
  7. 01 Mar, 2022 9 commits