Skip to content

Releases: androidx/media

1.10.0

27 Mar 11:34

Choose a tag to compare

  • Common library:
    • Promote Player.mute() and Player.unmute() from UnstableApi to stable.
    • Promote Format.pcmEncoding and C.PcmEncoding from UnstableApi to stable.
    • Add Format.primaryTrackGroupId to identify the primary group of embedded Format instances (#294).
  • ExoPlayer:
    • Add clipping capabilities to AdsMediaSource.
    • Add support for dynamic scheduling in MediaCodecVideoRenderer to better align scheduling work and CPU wake-cycles to when video frames can be processed. You can enable this using experimentalSetEnableMediaCodecVideoRendererDurationToProgressUs() in the DefaultRenderersFactory.
    • Allow setting a custom DataSource.Factory in DefaultPreloadManager.Builder.
    • Allow ExoPlayer to be mocked without Robolectric by moving some default constants to ExoPlayer.Builder. Mocking this complex interface is not generally encouraged - only when the usage is minimal/simple/incidental (#2985).
      • This required moving DEFAULT_STUCK_PLAYING_DETECTION_TIMEOUT_MS from ExoPlayer to ExoPlayer.Builder (without deprecation).
    • Fix a bug where ProgressiveMediaSource propagates out-of-date timeline info to the player, and the queued periods unexpectedly get removed (#3016).
    • Fix issue where ExoPlayer would not request delayed audio focus when playback is requested during phone calls.
    • Fix bug where transitions from on-demand to live content may cause re-buffers at the end of the on-demand content (#3052).
    • Add support for Dolby Vision Profile 10 (#2830).
    • Fix bug where an uninitialized pre roll ad produced an ArrayIndexOutOfBoundsException (#3125).
  • CompositionPlayer:
    • Add support for EditedMediaItem.removeVideo.
  • Transformer:
    • EditedMediaItem.Builder.setFrameRate() can now set a maximum output frame rate for video, which is particularly helpful when increasing media speed with setSpeed().
  • Track selection:
    • Change signature of DefaultTrackSelector.selectAllTracks to include the output array as a parameter, pre-populated with track overrides.
    • Fix issue where embedded metadata tracks are selected irrespective of whether the corresponding primary track is selected (#294).
    • Stabilize TrackSelectionParameters options for preferredVideoLanguages, preferredVideoLabels, preferredAudioLabels, preferredTextLabels and selectTextByDefault.
  • Extractors:
    • MP4: Support files with large uuid boxes before other boxes like moov (#3046).
    • MP4: Add support for Versatile Video Coding (VVC) tracks in MP4 containers.
  • Inspector:
    • Breaking change: remove FrameExtractor. Users should now depend on the new :media3-inspector-frame module and update imports to androidx.media3.inspector.frame.FrameExtractor.
    • Introduce a new module for extracting and processing decoded video frames.
  • Audio:
    • Change underlying decoding library for the IAMF decoder extension from libiamf to iamf_tools.
    • IAMF decoding supports binaural output either through the decoder (when using the IAMF decoder extension) or through the Android Spatializer.
    • Correctly remove support for AC4Profile22 and other legacy profiles when assessing AC-4 decoder support in Automotive scenarios (#2609).
    • Improve the retry logic of AudioOutput initialization in DefaultAudioSink (#2905).
    • Improve the retry logic of AudioOutput initialization in DefaultAudioSink (#2905).
    • Attempt to match the output layout of the speakers (or Spatializer if applicable) when decoding IAMF, both with the IAMF extension and media codec decoders, supported by new fields and logic in AudioCapabilities and AudioCapabilitiesReceiver.
    • Fix bug where playback gets stuck when playing a playlist of gapless audio in compressed offload mode.
  • Text:
    • VobSub: Use START and STOP SPU control commands to derive cue duration instead of always defaulting to 5 seconds (#2935).
  • Metadata:
    • Increase default count of metadata renderers to four to cover all potential metadata tracks published by HLS variants and renditions (#3043).
  • Effect:
    • Move LottieOverlay to a new :media3-effect-lottie module (which also involved renaming it from androidx.media3.effect.LottieOverlay to androidx.media3.effect.lottie.LottieOverlay).
  • Effect Lottie:
    • Introduce a new :media3-effect-lottie module which provides functionality for applying lottie effects to video frames.
  • IMA extension:
    • Update the IMA SDK version to 3.39.0 in order to have access to the latest Ad media info API.
    • Fix a bug where the ad MIME type did not match the MIME type provided in the IMA LOADED event. The fix now maps the ad MIME type using the ad media info provided by IMA.
    • Add setEnableCustomTabs to ImaAdsLoader and ImaServerSideAdInsertionMediaSource, allowing users to control whether ad click-through URLs are launched using Custom Tabs.
    • Add the ImaAdTagUriBuilder, a class that offers an alternative way to construct an adTagUri. It contains the setPreferredLinearOrientation API. This is an API in alpha testing that will allow you to set your preferred orientation for linear ads. If you want to join the alpha testing group, please reach out to your account partner.
  • Session:
    • Fix a bug where large arrays in MediaMetadata.artworkData can crash the app.
    • Use type int for @Player.Command argument in the ActionFactory interface (#2933).
    • Make MediaSessionService and MediaLibraryService a LifecycleService, allowing to attach lifecycle-aware operations to the service's lifecycle (#187).
    • Stop supporting device volume change commands from MediaController and MediaBrowser for local playbacks. Apps shouldn't change the local device volume, and if required, can use AudioManager APIs for this purpose.
    • Detect stale Intent instances that started the service as a foreground service. This prevents a ForegroundServiceDidNotStartInTimeException being thrown by the system. This is a breaking change on an unstable API for apps implementing a custom MediaNotification.Provider as there is a new required method.
    • Add builders for PendingIntent instances to be used with home screen widgets (#2933).
    • Add static methods for creating Intent instances for Compose-based home screen widgets (#2933).
    • Fix a bug where the media item transition wasn't reported to controllers when playback transitioned from a given media item index to another with the same media item for discontinuity reason 'AUTO' and 'SEEK' (#2997).
    • Fix issue where system UI button placement workaround negatively affects other UI surface like Android Auto or manufacturers not needing the workaround (#3041).
    • Fix issue where access to subscriptions was not synchronized (#3056).
    • Workaround SysUI bug on API 29 where media session artwork in a particular size can crash SysUI and force the device to reboot (#3118).
  • UI:
    • Add PlaybackSpeedControl Composable to media3-ui-compose for displaying and modifying playback speed.
    • Add PlaybackSpeedToggleButton Composable to media3-ui-compose-material3 for controlling playback speed.
    • Add ProgressSlider Composable to media3-ui-compose-material3 for displaying player progress and performing seeks using dragging and tapping (#2288).
    • Avoid large offscreen buffer in animating PlayerControlView.
    • Add Player Composable to media3-ui-compose-material3 which combines a ContentFrame with customizable controls aligned to top, center, and bottom.
    • Hide playback position from the accessibility service to prevent continuous announcement update when PlayerControlView is visible.
  • HLS extension:
    • Support X-PLAYOUT-LIMIT with HLS interstitials (#2484).
    • Support the QUERYPARAM attribute with #EXT-X-DEFINE (#1854).
    • Optimize HLS playlist parsing by caching regular expression matchers (#3008).
    • Expose ID3 (EMSG) metadata track in audio renditions (#3043).
    • Allow location fallback upon encountering load errors, if redundant streams from different locations are available (#1988).
    • Fix X-SNAP behaviour for HLS interstitials to correctly calculate start and resumption position (#3013).
  • DASH extension:
    • Fix issue where tracks with unaligned segment start times cause delays or missed sam...
Read more

1.10.0-rc03

24 Mar 16:24

Choose a tag to compare

  • ExoPlayer:
    • Fix bug where an uninitialized pre roll ad produced an ArrayIndexOutOfBoundsException (#3125).
  • Session:
    • Workaround SysUI bug on API 29 where media session artwork in a particular size can crash SysUI and force the device to reboot (#3118).
  • RTSP extension:
    • Fixed regression in H.264 and H.265 streaming that would incorrectly parse samples of the same access unit that spanned multiple RTP packets. This resulted in visual artifacts and corruption in the video (#3121).

1.10.0-rc02

24 Mar 09:00

Choose a tag to compare

  • Audio:
    • Fix bug where playback gets stuck when playing a playlist of gapless audio in compressed offload mode.

1.9.3

16 Mar 15:38

Choose a tag to compare

  • Audio:
    • Fix bug where playback gets stuck when playing a playlist of gapless audio in compressed offload mode.

1.10.0-rc01

10 Mar 18:41

Choose a tag to compare

  • Session:
    • Fix notification artwork icon scaling on Android Q (#3084).
  • UI:
    • Hide playback position from the accessibility service to prevent continuous announcement update when PlayerControlView is visible.

1.10.0-beta01

25 Feb 11:21

Choose a tag to compare

1.10.0-beta01 Pre-release
Pre-release
  • Common library:
    • Add Format.primaryTrackGroupId to identify the primary group of embedded Format instances (#294).
  • ExoPlayer:
    • Fix issue where ExoPlayer would not request delayed audio focus when playback is requested during phone calls.
    • Fix bug where transitions from on-demand to live content may cause re-buffers at the end of the on-demand content (#3052).
    • Add support for Dolby Vision Profile 10 (#2830).
  • Track selection:
    • Change signature of DefaultTrackSelector.selectAllTracks to include the output array as a parameter, pre-populated with track overrides.
    • Fix issue where embedded metadata tracks are selected irrespective of whether the corresponding primary track is selected (#294).
    • Stabilize TrackSelectionParameters options for preferredVideoLanguages, preferredVideoLabels, preferredAudioLabels, preferredTextLabels and selectTextByDefault.
  • Extractors:
    • MP4: Support files with large uuid boxes before other boxes like moov (#3046).
    • MP4: Add support for Versatile Video Coding (VVC) tracks in MP4 containers.
  • Audio:
    • Improve the retry logic of AudioOutput initialization in DefaultAudioSink (#2905).
    • Attempt to match the output layout of the speakers (or Spatializer if applicable) when decoding IAMF, both with the IAMF extension and media codec decoders, supported by new fields and logic in AudioCapabilities and AudioCapabilitiesReceiver.
  • Metadata:
    • Increase default count of metadata renderers to four to cover all potential metadata tracks published by HLS variants and renditions (#3043).
  • Session:
    • Fix issue where system UI button placement workaround negatively affects other UI surface like Android Auto or manufacturers not needing the workaround (#3041).
    • Fix issue where access to subscriptions was not synchronized (#3056).
  • UI:
    • Add Player Composable to media3-ui-compose-material3 which combines a ContentFrame with customizable controls aligned to top, center, and bottom.
  • HLS extension:
    • Expose ID3 (EMSG) metadata track in audio renditions (#3043).
    • Allow location fallback upon encountering load errors, if redundant streams from different locations are available (#1988).
    • Fix X-SNAP behaviour for HLS interstitials to correctly calculate start and resumption position (#3013).
  • DASH extension:
    • Fix issue where tracks with unaligned segment start times cause delays or missed samples at the beginning of playback (#3057).
    • Fix bug where timestamps of inband EMSG v0 metadata are not set correctly (#3024).
  • Decoder extensions (FFmpeg, VP9, AV1, etc.):
    • Add MPEG-H UI manager support to the MPEG-H decoder extension (#3066).
  • Remove deprecated symbols:
    • Remove androidx.media3.extractor.metadata.flac.VorbisComment. Use androidx.media3.extractor.metadata.vorbis.VorbisComment instead.
    • Remove MediaSource.prepareSource(MediaSourceCaller, TransferListener). Use MediaSource.prepareSource(MediaSourceCaller, TransferListener, PlayerId) instead.

1.10.0-alpha01

09 Feb 10:05
d017af2

Choose a tag to compare

1.10.0-alpha01 Pre-release
Pre-release
  • Common Library:
    • Promote Player.mute() and Player.unmute() from UnstableApi to stable.
    • Promote Format.pcmEncoding and C.PcmEncoding from UnstableApi to stable.
  • ExoPlayer:
    • Add clipping capabilities to AdsMediaSource.
    • Add support for dynamic scheduling in MediaCodecVideoRenderer to better align scheduling work and CPU wake-cycles to when video frames can be processed. You can enable this using experimentalSetEnableMediaCodecVideoRendererDurationToProgressUs() via the DefaultRenderersFactory.
    • Allow setting a custom DataSource.Factory in DefaultPreloadManager.Builder.
    • Allow ExoPlayer to be mocked without Robolectric by moving some default constants to ExoPlayer.Builder. Mocking this complex interface is not generally encouraged - only when the usage is minimal/simple/incidental (#2985).
      • This required moving DEFAULT_STUCK_PLAYING_DETECTION_TIMEOUT_MS from ExoPlayer to ExoPlayer.Builder (without deprecation).
    • Fix bug where ProgressiveMediaSource propagates out-of-date timeline info to player and the queued periods unexpectedly get removed (#3016).
  • CompositionPlayer:
    • Add support for EditedMediaItem.removeVideo.
  • Transformer:
    • EditedMediaItem.Builder.setFrameRate() can now set a maximum output frame rate for video, which is particularly helpful when increasing media speed with setSpeed().
  • Inspector:
    • Breaking change: Removed FrameExtractor. Users should now depend on the new :media3-inspector-frame module and update imports to androidx.media3.inspector.frame.FrameExtractor.
  • Inspector Frame:
    • Introduced a new module for extracting and processing decoded video frames.
  • Audio:
    • Change underlying decoding library for IAMF decoder extension from libiamf to iamf_tools.
    • IAMF decoding supports binaural output either through the decoder (when using the IAMF decoder extension) or through the Android Spatializer.
    • Correctly remove support for AC4Profile22 and other legacy profiles when assessing AC-4 decoder support in Automotive scenarios (#2609).
    • Improve the retry logic of AudioOutput initialization in DefaultAudioSink (#2905).
  • Text:
    • VobSub: Use START and STOP SPU control commands to derive cue duration instead of always defaulting to 5s (#2935).
  • Effect:
    • Moved LottieOverlay to a new :media3-effect-lottie module (which also involved renaming it from androidx.media3.effect.LottieOverlay to androidx.media3.effect.lottie.LottieOverlay).
  • Effect Lottie:
    • Introduced a new :media3-effect-lottie module which provides functionality for applying lottie effects to video frames.
  • IMA extension:
    • Update the IMA SDK version to 3.39.0 in order to have access to the latest Ad media info API.
    • Bug fix: Corrected an issue where the ad MIME type did not match the MIME type provided in the IMA LOADED event. The fix now maps the ad MIME type using the ad media info provided by IMA.
    • Added setEnableCustomTabs to ImaAdsLoader and ImaServerSideAdInsertionMediaSource, allowing users to control whether ad click-through URLs are launched using Custom Tabs.
    • Add the ImaAdTagUriBuilder, a class that offers an alternative way to construct an adTagUri. It contains the setPreferredLinearOrientation API. This is an API in alpha testing that will allow you to set your preferred orientation for linear ads. If you wish to join the alpha testing group, please reach out to your account partner.
  • Session:
    • Fix bug where large arrays in MediaMetadata.artworkData can crash the app.
    • Use type int for @Player.Command argument in the ActionFactory interface (#2933).
    • Make MediaSessionService and MediaLibraryService a LifecycleService, more easily allowing to attach lifecycle-aware operations to the service's lifecycle (#187).
    • Stop supporting device volume change commands from MediaController and MediaBrowser for local playbacks. Apps should not change the local device volume, and if required, can use AudioManager APIs for this purpose.
    • Detect stale Intent instances that started the service as a foreground service. This prevents a ForegroundServiceDidNotStartInTimeException being thrown by the system. This is a breaking change on an unstable API for apps implementing a custom MediaNotification.Provider as there is a new required method.
    • Add builders for PendingIntent instances to be used with home screen widgets (#2933).
    • Add static methods for creating Intent instances for Compose-based home screen widgets (#2933).
    • Fix bug where the media item transition wasn't reported to controllers when playback transitioned from a given media item index to another with the same media item for discontinuity reason AUTO and SEEK (#2997).
  • UI:
    • Add PlaybackSpeedControl Composable to media3-ui-compose for displaying and modifying playback speed.
    • Add PlaybackSpeedToggleButton Composable to media3-ui-compose-material3 for controlling playback speed.
    • Add ProgressSlider Composable to media3-ui-compose-material3 for displaying player progress and performing seeks using dragging and tapping (#2288).
    • Avoid large offscreen buffer in animating PlayerControlView.
  • HLS extension:
    • Support X-PLAYOUT-LIMIT with HLS interstitials (#2484).
    • Support the QUERYPARAM attribute with #EXT-X-DEFINE (#1854).
    • Optimize HLS playlist parsing by caching regex Matchers (#3008).
  • Cast extension:
    • Add RemoteCastPlayer.Builder#setTrackSelector method that enables the implementation of track selection for Cast playbacks.
  • Remove deprecated symbols:
    • Removed ExperimentalFrameExtractor. Use androidx.media3.inspector.frame.FrameExtractor instead.
    • Removed ChannelMixingMatrix.create(). Use ChannelMixingMatrix.createForConstantGain() instead.

1.9.2

06 Feb 10:36

Choose a tag to compare

  • ExoPlayer:
    • Fix bug where ProgressiveMediaSource propagates out-of-date timeline info to player and the queued periods unexpectedly get removed (#3016).
  • Session:
    • Fix issue where system UI button placement workaround negatively affects other UI surface like Android Auto or manufacturers not needing the workaround (#3041).
  • Cast extension:
    • Fix bug where transferring from Cast to local playback was broken.

1.9.1

26 Jan 11:27

Choose a tag to compare

  • Common Library:
    • Support date-time strings with only hours in the timezone offset (#2929).
  • ExoPlayer:
    • Allow dynamic scheduling to slow doSomeWork interval only after audio starts to support smoother A/V sync at beginning of playback.
    • Fix bug in DefaultLoadErrorHandlingPolicy where FileNotFoundException and similar exception types were retried multiple times.
    • Fix bug with dynamic scheduling where the calculated time for the next doSomeWork was mistakenly reduced by the elapsed time of the current iteration of doSomeWork. Addressing this hopefully extends CPU idle time and saves power.
    • Fix issue where some playbacks of Dolby Vision files fail when attempting to use a fallback AVC or HEVC codec.
    • Fix bug where loading continues after playback ended when removing the currently playing item from a playlist (#2873).
    • Avoid leaking MediaItem instances when repeatedly using ExoPlayer.replaceMediaItem on the same item (#2993).
    • Prevent potential ANRs caused by emergency wake lock releases (#2979).
  • Extractors:
    • MP3: Parse LAME ReplayGain data (#2840).
  • Audio:
    • Correctly remove support for AC4Profile22 and other legacy profiles when assessing AC-4 decoder support in Automotive scenarios (#2609).
  • Video:
    • Discard video codecs on devices below API 30 when the content frame rate changes to avoid stuttering playback (#2941).
  • Text:
    • VobSub: Fix some missing subtitles by correctly handling SPUs that either contain only a single control sequence, or have critical info split across multiple control sequences (#2935).
  • IMA extension:
    • Bug fix: Corrected an issue where the ad MIME type did not match the MIME type provided in the IMA LOADED event. The fix now maps the ad MIME type using the ad pod index and ad position.
    • Add a null check before accessing result of getAdsManager() and AdEvent.getAd().
  • Session:
    • Fix bug where stopping a MediaController connected to a platform session crashed the app if stop happened during ad playback (#2948).
    • Add additional verifications on extras Bundle instances in various classes to guard against malformed Bundle instances sent from other processes.
    • Fix issue where missing commands for COMMAND_SEEK_NEXT or COMMAND_SEEK_BACK can cause gaps in the system media notification (#2976).
    • Move bitmap scaling for notification icon off the main thread (#2829).
    • Fix bug where author, writer and composer were not used as a fallback when converting from legacy MediaMetadataCompat and MediaDescriptionCompat (#3018).
  • Downloads:
    • Fix potential infinite loops when a PriorityTooLowException is handled by SegmentDownloader (for DASH, HLS and SmoothStreaming). Custom overrides of SegmentDownloader using the protected execute method need to provide their task wrapped in a Supplier so it can be recreated (#2931).
  • HLS extension:
    • Pass the raw asset list JSON document to Listener.onAssetListLoadCompleted callback. This is a breaking change in an unstable API that requires apps that implement this callback to add an additional argument of type JSONObject (#2950).
  • RTSP extension:
    • Correctly handle RTP Packets with timestamps that wrap around (#2930).
  • Decoder extensions (FFmpeg, VP9, AV1, etc.):
    • Fix potential NullPointerException that can occur when seeking prior to processing the first video frame (#2965).
  • Cast extension:
    • Fix bug preventing the RemoteCastPlayer timeline from updating correctly when replacing the playlist.

1.9.0

17 Dec 21:21

Choose a tag to compare

1.9.0 (2025-12-17)

  • Common Library:
    • Update minSdk to 23 in line with other AndroidX libraries.
    • Add PlayerTransferState, which facilitates transferring the playback state across Player instances.
    • Add void mute() and void unmute() methods to Player that preserve and consequently restore Player's volume before and after setting it to zero.
    • Publish utility classes WakeLockManager, WifiLockManager, AudioFocusManager, AudioBecomingNoisyManager and StuckPlayerDetector previously used by ExoPlayer internally to allow reuse for other players (#1893).
    • Fix ForwardingPlayer listener handling when the underlying delegate player uses reference equality for comparing listener instances (#2675).
    • Add a Player.listenTo suspending extension function in the media3-common-ktx library that specifies the particular Player.Events that should be acted upon.
    • Fix a crash in BasePlayer.getBufferedPercentage resulting from integer overflow when the reported buffered position is implausibly much larger than the reported duration (#2750).
    • Fix auto-detection of TrackGroup track type by not ignoring custom sample MIME type and falling back to using the potentially wrong track type from the container MIME type (#2860).
  • ExoPlayer:
    • Add a stuck player detection that triggers a StuckPlayerException player error if the player seems stuck. This happens in the following cases, where each default timeout can be configured in ExoPlayer.Builder if required:
      • After 10 minutes of STATE_BUFFERING while trying to play and no buffering progress.
      • After 10 seconds of STATE_READY while trying to play and no playback progress.
      • After 1 minute of STATE_READY beyond the declared duration without reaching the end of the item.
      • After 10 minutes with a playback suppression reason while trying to play.
    • Enable wake lock handling by default to fix issues with buffering during background playback. This is equivalent to setting ExoPlayer.Builder.setWakeMode to C.WAKE_MODE_LOCAL.
    • Add listening logic to automatically update the virtual device ID when a change is reported to the Context originally passed to ExoPlayer.Builder.
    • Add ExoPlayer.setVirtualDeviceId to manually update the virtual device ID obtained from the Context passed to ExoPlayer.Builder.
    • Ensure renderers don't consume data from the next playlist item more than 10 seconds before the end of the current item.
    • Add setSeekBackIncrementMs, setSeekForwardIncrementMs and setMaxSeekToPreviousPositionMs to ExoPlayer to update these settings after construction (#2736).
    • Add pre-caching functionality in DefaultPreloadManager. Apps now can return DefaultPreloadManager.PreloadStatus.specifiedRangeCached(startPositionMs, durationMs) or DefaultPreloadManager.PreloadStatus.specifiedRangeCached(durationMs) via TargetPreloadStatusControl.getTargetPreloadStatus(T rankingData) to indicate that a media item needs to be pre-cached.
    • Use pre-caching functionality of DefaultPreloadManager in shortform demo app.
    • Add DefaultLoadControl.Builder setters for local playback and adjust default values of DefaultLoadControl to work well with a wide range of local files.
    • Fix bug where setting an empty playlist can leave the player in STATE_READY or STATE_BUFFERING.
    • Enhance the preload manager APIs:
      • Add addMediaItems(List<MediaItem>, List<T>) and addMediaSources(List<MediaSource>, List<T>) that add the media items or media sources in batch, and automatically call invalidate() afterwards.
      • Add removeMediaItems((List<MediaItem>) and removeMediaSources(List<MediaSource>) that remove the media items or media sources in batch, and make sure that preload manager does not start to preload or continue preloading any of them after removal.
      • Allow DefaultPreloadManager.setCurrentPlayingIndex(int) to invalidate itself automatically. Apps don't need to call invalidate() explicitly anymore after updating the current playing index.
    • Add capability to skip keyframe reset for forward seeks within the same group of pictures while in scrubbing mode.
    • Add DefaultLoadControl.Builder.setPlayerTargetBufferBytes(String, int) for apps to set a value of target buffer bytes for a player with the specified playerName. The DefaultLoadControl can now make decisions of each player separately based on its own allocated bytes and target buffer bytes.
    • Add SkipInfo to the AdPlaybackState.AdGroup to carry skip information for each ad in the ad group.
    • Fix bug where calling removeMediaItems(List) during playing a post-roll created a crash (#2746).
    • Fix some stuttering in playlist playback where frames were mistakenly always set as the last sample and rendered.
    • Enable retry path if player fails to generate audio session ID (#2382, #2678).
    • Add support to control the total buffer bytes for the sources in DefaultPreloadManager to avoid total buffer bytes for preloading from growing arbitrarily. To use the default control logic, Apps can set the target buffer bytes for preloading via DefaultLoadControl.Builder.setPlayerTargetBufferBytes(String, int) for a playerName of PlayerId.Preload.name ("preload"), and inject the created DefaultLoadControl via DefaultPreloadManager.Builder.setLoadControl(LoadControl).
    • Add cloneAndSet(int, int) to ShuffleOrder with a default implementation (#2834).
    • Append content resume offset when skipping ad playback after seek adjustment or auto transition (#2484).
    • Add API to set and observe codec parameters for audio and video tracks. This feature is implemented for MediaCodec based renderers and requires API 29+.
      • Use ExoPlayer.setAudioCodecParameters() and ExoPlayer.setVideoCodecParameters() to apply parameters.
      • Use ExoPlayer.addAudioCodecParametersChangeListener() and ExoPlayer.addVideoCodecParametersChangeListener() to listen for changes. Observing vendor-specific keys requires API 31+.
    • Fix IllegalStateException caused by setting an empty media source after seeking to a non-zero position and then preparing the player with a non-empty media source.
    • Fix bug where seeking into other media items while in scrubbing mode could cause IllegalStateException.
    • Fix potential NullPointerException in DefaultPlaybackSessionManager (#2885).
    • Enable improvements in seeking performance for eligible videos.
    • Re-enable use of asynchronous decryption in MediaCodec on API 36+ where timeout issues with this platform API have been fixed (#1641).
    • Change the default value of MediaCodecVideoRenderer.experimentalSetLateThresholdToDropDecoderInputUs to 15ms and enable more efficient dropping of video frames before decoding for eligible videos.
    • Add maximum memory limit to the automatic memory calculation in DefaultLoadControl. This should only take effect if an excessive number of tracks get selected (#2860).
    • Fix bug where, if playing in a playlist or repeat mode, seeking in scrub mode near the end could cause a seek to the next media item.
  • CompositionPlayer:
    • Publish CompositionPlayer under a new @ExperimentalApi annotation to indicate it is available for experimentation, but is still under development. Some APIs are likely to change significantly in future releases, and there are known issues and limitations with some use-cases (some undocumented).
    • Add support for COMMAND_SET_AUDIO_ATTRIBUTES and audio focus handling in CompositionPlayer.
    • Add support for speed changing in secondary sequences in CompositionPlayer.
    • Add support for EditedMediaItem.removeVideo.
  • Transformer:
    • Use InAppMp4Muxer as default muxer.
    • Add EditedMediaItem.Builder#setSpeed() and deprecate Effects#createExperimentalSpeedChangingEffects().
    • Replace forceAudioTrack and forceVideoTrack with trackTypes in EditedMediaItemSequence.
  • Track Selection:
    • Add TrackSelectionParameters.selectTextByDefault to prefer the selection of any text track without specifying other more specific preferences.
    • Add preferredVideoLabels, preferredAudioLabels and preferredTextLabels in TrackSelectionParameters to specify a preference for tracks with a specific label, for example those read from HLS NAME tags (#1666).
  • Extractors:
    • FLAC: Tighten header detection to reduce the chance of finding spurious headers in the encoded FLAC data, resulting in decoding errors (#558).
    • MP3: Allow gaps between (and before) ID3 tags at the beginning of MP3 files (#811, #5718).
    • MP3: Increase sniffing limit to 128kB to match the existing search limit for a sync byte (#2713).
    • MP3: Change FLAG_ENABLE_INDEX_SEEKING to prefer seeking informatio...
Read more