
This workaround was added for TS streams that do not adjust their timestamps to start from zero. Over time, the default audio sink logic has become more robust towards unexpected timestamps and we no longer need this workaround to jump forward in time. The workaround also actively caused issues by adjusting the audio timestamps backwards if the stream starts with large negative values. See Issue: androidx/media#291. This caused playback to get stuck due to another bug in the first-frame rendering logic in the video renderer that is now fixed. PiperOrigin-RevId: 553493618
ExoPlayer module
This module provides ExoPlayer
, the Player
implementation for local media
playback on Android.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-exoplayer:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.