- ExoPlayer:
SampleStream.FLAG_OMIT_SAMPLE_DATAnow ensures that
DecoderInputBuffer.cryptoInfois populated for encrypted samples.
CustomSampleStreamimplementations must be updated to adhere to this
contract.- Fix
CryptoInfo.numBytesOfEncryptedDataover-reporting the encrypted
payload size for full-sample encrypted samples with supplemental data
(such as encrypted WebM/Matroska streams with block additions). - Fix an issue where calling
seekTowhile an ad is playing could freeze
getCurrentPosition()if another player operation (such as
setPlayWhenReady) was still pending on the playback thread
(#3512). - Add support for dynamic scheduling in
MetadataRendererto better align
scheduling work and CPU wake-cycles to when metadata samples can be read
or output. You can enable this using
Flags.enableFlag(Flags.FLAG_METADATA_RENDERER_DURATION_TO_PROGRESS). - Fix issue where
ExoPlayer.isLoading()remainstruewhen playback
transitions toSTATE_ENDEDorSTATE_IDLE, causing an
IllegalArgumentExceptioninForwardingSimpleBasePlayer
(#3467). - Immediately wake up the playback loop to handle asynchronous
MediaCodecerrors instead of waiting for the next scheduled rendering
iteration. - Fix an issue where
Player.getCurrentPosition()could freeze during
audio offload playback
(#3546).
- Extractors:
- Matroska: Fix
ParserExceptionwhen parsing files with a non-standard
0x80element outsideChapterAtom, such asMuxingAppwritten by
libmkv0.6.4 / HandBrake 0.9.4
(#3562).
- Matroska: Fix
- Inspector:
- Fix
MediaExtractorCompat.getSampleCryptoInfoto copy all array fields
into the caller'sMediaCodec.CryptoInfo, matching the platform
MediaExtractorand preventing subsequent calls or reads from
overwriting previously returned arrays. - Fix
ParserExceptioninMetadataRetrieverwhen retrieving metadata
from MP4 and MOV files with MPEG (MP1, MP2, MP3) or DTS audio tracks.
- Fix
- Text:
- Fix
IndexOutOfBoundsExceptionwhen parsing a WebVTT cue with multiple
<ruby>tags nested inside another tag
(#3549).
- Fix
- Session:
- Fix a bug where controllers from apps with notification listener access
were marked as untrusted when the controller package wasn't explicitly
queried in the session app's manifest (fixed for platform and legacy
controllers on API 33+, and for all controllers on API 30+ when the
listener service is exported)
(#3507).
- Fix a bug where controllers from apps with notification listener access
- UI:
- Fix an issue where
PlayerSurfaceandContentFramewith
SURFACE_TYPE_SURFACE_VIEWturned surrounding Compose backgrounds black
on Android 11 and earlier
(#2638,
#3285,
#3466). - Configure a width-based fractional seek tolerance in
ExoPlayer.getScrubbingModeParameters()whenProgressSliderin
media3-ui-compose-material3is used withExoPlayer. - Fix
PlayerControlViewsettings popup alignment when the control view
or its parent has padding or window insets applied
(#234). - Apply the user's system caption style and text size in
SubtitleView
(and thereforePlayerView) even if the system "Show captions" setting
is off, so that subtitles turned on in the app match the user's
preferences. This is guarded by
Flags.FLAG_APPLY_USER_CAPTION_STYLE_IF_CAPTIONS_DISABLED, which is
enabled in canary mode.
- Fix an issue where
- OkHttp extension:
- Fix the error code of failures in
OkHttpDataSource.openbefore a
response arrives, which was always
ERROR_CODE_IO_NETWORK_CONNECTION_FAILED. For example, a timeout now
getsERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT, and a cleartext request
that the network security policy blocks now throws
CleartextNotPermittedException.
- Fix the error code of failures in
- HLS extension:
- Fix playback failure for multivariant playlists that declare a
non-positiveFRAME-RATE(for exampleFRAME-RATE=0.000), which are
now parsed as having an unknown frame rate
(#3540).
- Fix playback failure for multivariant playlists that declare a
- Cast extension:
- Fix an issue where
RemoteCastPlayercleared its timeline before
transferring playback state back to the local player inCastPlayer
when the receiver app stopped externally
(#2182).
- Fix an issue where