1. 27 Jun, 2022 2 commits
  2. 16 Jun, 2022 7 commits
  3. 15 Jun, 2022 13 commits
  4. 14 Jun, 2022 4 commits
  5. 13 Jun, 2022 5 commits
  6. 10 Jun, 2022 1 commit
  7. 09 Jun, 2022 8 commits
    • Check targetSdkVersion for frame dropping workaround. · a105d033
      Based on
      https://developer.android.com/reference/android/media/MediaCodec#using-an-output-surface,
      frame dropping behaviour depends on the target SDK version.
      After this change transformer will only use
      MediaFormat#KEY_ALLOW_FRAME_DROP if both the target and system SDK
      version are at least 29 and default to its pre 29 behaviour where each
      decoder output frame must be processed before a new one is rendered
      to prevent frame dropping otherwise.
      
      Also remove deprecated Transformer.Builder constructor without a
      context and the context setter.
      
      PiperOrigin-RevId: 453971097
      hschlueter committed
    • Make GlUtil.GlException checked and remove flag to disable it. · cc1f32d0
      Transformer always enabled glAssertionsEnabled, so there should
      be no functional change.
      
      ExoPlayer previously disabled glAssertionsEnabled, so GlUtil logged
      GlExceptions instead of throwing them. The GlExceptions are now
      caught and logged by the callers so that there should also be no
      functional change overall.
      
      This change also replaces EGLSurfaceTexture#GlException with
      GlUtil#GlException.
      
      PiperOrigin-RevId: 453963741
      hschlueter committed
    • Check targetSdkVersion for frame dropping workaround. · 3f718b0d
      Based on
      https://developer.android.com/reference/android/media/MediaCodec#using-an-output-surface,
      frame dropping behaviour depends on the target SDK version.
      After this change transformer will only use
      MediaFormat#KEY_ALLOW_FRAME_DROP if both the target and system SDK
      version are at least 29 and default to its pre 29 behaviour where each
      decoder output frame must be processed before a new one is rendered
      to prevent frame dropping otherwise.
      
      Also remove deprecated Transformer.Builder constructor without a
      context and the context setter.
      
      PiperOrigin-RevId: 453971097
      hschlueter committed
    • Make GlUtil.GlException checked and remove flag to disable it. · dc668f2b
      Transformer always enabled glAssertionsEnabled, so there should
      be no functional change.
      
      ExoPlayer previously disabled glAssertionsEnabled, so GlUtil logged
      GlExceptions instead of throwing them. The GlExceptions are now
      caught and logged by the callers so that there should also be no
      functional change overall.
      
      This change also replaces EGLSurfaceTexture#GlException with
      GlUtil#GlException.
      
      PiperOrigin-RevId: 453963741
      hschlueter committed
    • DefaultTrackSelector: Constrain audio channel count · 9f3c595e
      The track selector will select multi-channel formats when those can be
      spatialized, otherwise the selector will prefer stereo/mono audio
      tracks. When the device supports audio spatialization (Android 12L+),
      the DefaultTrackSelector will monitor for changes in the platform
      Spatializer and trigger a new track selection upon a
      Spatializer change event.
      
      Devices with a `television` UI mode are excluded from audio channel
      count constraints.
      
      #minor-release
      
      PiperOrigin-RevId: 453957269
      christosts committed
    • DefaultTrackSelector: Constrain audio channel count · e2f0fd76
      The track selector will select multi-channel formats when those can be
      spatialized, otherwise the selector will prefer stereo/mono audio
      tracks. When the device supports audio spatialization (Android 12L+),
      the DefaultTrackSelector will monitor for changes in the platform
      Spatializer and trigger a new track selection upon a
      Spatializer change event.
      
      Devices with a `television` UI mode are excluded from audio channel
      count constraints.
      
      #minor-release
      
      PiperOrigin-RevId: 453957269
      christosts committed
    • Fix bug: playback is frozen with HLS chunkless preparation · 9221eeb2
      This change fixes a bug where the player is frozen with HLS chunkless
      preparation because the audio stream wrappers are not marked as master
      timestamp sources before preparation.
      
      #minor-release
      
      PiperOrigin-RevId: 453941815
      christosts committed
    • Ensure re-encode on performance tests · 12d775f0
      PiperOrigin-RevId: 453933854
      claincly committed