1.12.0-beta01
Pre-releaseAdded 5
- Add AdViewProvider.getAdVideoView() to provide the video container View that can be resized during ad playback
- Add MediaPeriod.supportsStreamPrerollFlags() (defaulting to false) so custom MediaPeriod implementations can report initial discontinuities using SampleStream.getFlags()
- Add CodecDB (androidx.media3.transformer.codecdb), which recommends video encoder configurations (codec, encoder settings and bitrate) for the current device from measured encoder quality data
- Add FLAG_DISABLE_ID3_METADATA to AdtsExtractor to stop ID3 data in the stream from being output as an application/id3 track
- Set codec provenance using AudioTrack.Builder.setCodecProvenance on API 37+ when playing spatialized multichannel PCM audio decoded from a compressed format
Changed 4
- Reduce C.DEFAULT_BUFFER_SEGMENT_SIZE from 65536 to 65520 so each buffer allocation fits in whole OS pages in ART's large object space, reducing sample buffer memory usage by about 6% on 4 KiB-page devices and about 20% on 16 KiB-page devices
- Replace androidx.media3.common.util.NullableType with JSpecify org.jspecify.annotations.Nullable
- Kotlin subclasses of CompositeMediaSource that use nullable child source IDs must specify a nullable type argument
- Verify in AdsMediaSource that AdPlaybackState.removedAdGroupCount does not decrease across AdPlaybackState updates
Fixed 16
- Map the mlpa RFC 6381 codec string to MimeTypes.AUDIO_TRUEHD in MimeTypes.getMediaMimeType, fixing missing muxed Dolby TrueHD audio tracks during HLS chunkless preparation
- Fix AdPlaybackState.withAdDurationsUs to copy the passed array and AdPlaybackState.fromAdPlaybackState to copy all array fields of the ad groups so an instance can no longer be modified through retained or shared arrays
- Fix IllegalStateException (Player is accessed on the wrong thread) when Player.listen or Player.listenTo is cancelled from a thread other than the player's application thread
- Fix an issue where a renderer enabled early for an upcoming media period could start rendering before playback transitions to that period
- Fix an issue where transitioning between media periods that use different renderers could prematurely enable the incoming renderer before the outgoing renderer finished rendering when Flags.FLAG_PER_STREAM_MEDIA_PROGRESSION is enabled
- Fix an issue where transitioning to an ad at a custom playback speed could delay advancing all renderers to the ad period when Flags.FLAG_PER_STREAM_MEDIA_PROGRESSION is enabled
- Fix issues with pre-warming renderers during media period transitions and track reselections
- Fix an issue where skipping an ad followed by another ad in the same ad group was reported with DISCONTINUITY_REASON_AUTO_TRANSITION instead of DISCONTINUITY_REASON_SKIP, or not reported at all when AdsMediaSource uses lazy content source preparation
- Fix AdtsExtractor deriving the audio format from a false sync word in the payload of a partial first frame, which could cause playback of live AAC streams joined mid-frame to fail or stall
- Fix ArrayIndexOutOfBoundsException in FragmentedMp4Extractor when a fragment contains a trun box with no samples
- Fix gapless playback of AAC tracks in MP4 whose muxer shortens the last stts entry to exclude encoder padding, which caused the end of the last frame to be played
- Fix large upfront peek buffer allocations and OutOfMemoryError when sniffing corrupt or non-media files that start with ID3
- Fix an issue where cancelling the future returned by MetadataRetriever.retrieveDurationUs() prevented close() from releasing the underlying MediaSource
- Fix MediaExtractorCompat to return MediaFormat.KEY_FRAME_RATE as an integer, matching the platform MediaExtractor
- Fix an issue where buffered skipped silence was included in AudioSink.getCurrentPositionUs(boolean) and reported using AudioSink.Listener.onSilenceSkipped() before playback reached the skipped region
- Fix AudioTrack initialization retries being skipped when 1 second of audio is at least as large as the initial buffer size, which made DTS-HD passthrough fail on devices with limited audio memory
Removed 1
- Remove androidx.media3.common.util.UnknownNull in favor of JSpecify nullness annotations