1. 09 Jun, 2022 4 commits
  2. 07 Jun, 2022 6 commits
    • Use a shared `keyForField` implementation in track selection parameters · a056f08a
      The current setup with distinct, private `keyForField` implementations,
      leaves open the (theoretical) possibility of a clash in the `Bundle`
      keys used by the superclass and subclass. This change brings
      consistency with our only other extensible `Bundleable` type
      (`PlaybackException`).
      
      #minor-release
      
      PiperOrigin-RevId: 453385875
      ibaker committed
    • Rename `DefaultTrackSelector.ParametersBuilder` to `Parameters.Builder` · 88162238
      We generally nest the `Builder` for `Foo` inside `Foo`. In this case,
      there's already a `DefaultTrackSelector.Parameters.Builder` type visible
      to a developer, it just happens to be the 'common'
      `TrackSelectorParameters.Builder`, so using it is a bit weird. For
      example this code snippet doesn't compile because
      `DefaultTrackSelector.Parameters.Builder#build()` returns
      `TrackSelectionParameters`. This CL fixes that problem and the code
      snippet now compiles.
      
      ```java
      DefaultTrackSelector.Parameters params =
         new DefaultTrackSelector.Parameters.Builder(context).build()
      ```
      
      #minor-release
      
      PiperOrigin-RevId: 453215702
      ibaker committed
    • Add interface for async texture processors. · 023d19c8
      Implementations of this interface will be able to drop or add frames,
      change timestamps, accept multiple input frames before producing
      output, and process frames on their own background thread.
      
      A default implementation of this interface will be added to SingleFrameGlTextureProcessor in a follow-up.
      
      PiperOrigin-RevId: 453159835
      hschlueter committed
    • Filter bogus AndroidX Media jar file when creating javadoc · 2441bc69
      #minor-release
      
      PiperOrigin-RevId: 452282128
      bachinger committed
    • Fix `HiddenTypedefConstant` Metalava error on `PlaybackException` · 97210b5a
      This is done by removing the `@FieldNumber` IntDef completely. It's not
      really adding much value anyway, because it's `open` so there's no real
      enforcement to prevent passing 'incorrect' values.
      
      #minor-release
      
      PiperOrigin-RevId: 452108972
      ibaker committed
    • Add async error listener to transformer to avoid exception wrapping. · 960422e3
      This internal listener avoids wrapping the TransformationExceptions
      in PlaybackExceptions that are handled via the Player.Listener and
      is also used for FrameProcessingExceptions which already avoided
      the PlaybackException layer previously.
      
      This listener will also be useful in follow-ups for encoder-related
      TransformationExceptions that are thrown in the SurfaceProvider that
      will be called on the GL thread.
      
      PiperOrigin-RevId: 452074575
      hschlueter committed
  3. 31 May, 2022 8 commits
  4. 30 May, 2022 19 commits
  5. 26 May, 2022 3 commits
    • Fix typos flagged by lint · 53b44524
      PiperOrigin-RevId: 451135097
      ibaker committed
    • Fix some inconsistencies in the `MediaItem` API · b8769b27
      * Rename (via deprecation)
        `MediaItem.DrmConfiguration.Builder#forceSessionsForAudioAndVideoTracks`
        to `setForceSessionsForAudioAndVideoTracks`. This is more consistent
        with existing 'force' method names both in this class and in
        `TrackSelectionParameters.Builder`.
      * Add missing `@Nullable` annotation to the parameter for
        `MediaItem.SubtitleConfiguration.Builder#setMimeType`. This annotation
        is already present on the `MediaItem.SubtitleConfiguration#mimeType`
        field that this setter corresponds to.
      
      PiperOrigin-RevId: 450941336
      ibaker committed
    • Skip SSIM calculation on Nexus 5 API 21. · 2b4642f6
      There is a problem with the ImageReader formats used by the
      SSIM helper that only occurs for Nexus 5 API 21, so as a workaround
      we can skip the SSIM calculation on Nexus 5 API 21.
      
      This skips just the SSIM calculation (by setting the value to
      1.0 instead and logging). The tests still run when SSIM is skipped
      so that we can detect other failures.
      
      PiperOrigin-RevId: 450903183
      hschlueter committed