mirror of
https://github.com/androidx/media.git
synced 2025-05-13 02:29:52 +08:00

We currently accept any difference in reported frame position as an "advancing timestamp". However, we don't check if the resulting position is actually advancing or was only slightly corrected, but is not yet advancing reliably. This results in AV sync issues if the timestamp is used too early while it's not actually advancing yet, and the potential correction is only read 10 seconds later when we query the timestamp again. The fix is to check whether the timestamp is actually advancing as expected (the resulting position from the previous and the current snapshot don't differ by more than 1ms). To avoid permanent polling in 10ms intervals for devices that never report a reliable timestamp, we introduce another timeout after which we give up. PiperOrigin-RevId: 755373666
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.