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

This call does 2 things: 1. It's used to estimate the frame rate early but this is incorrect as the frame rate can be changed by effects. I have tested playback on my device and I don't see any difference. 2. For ExoPlayer.setVideoEffects() only: it allows dropping all the frames until the next key frame in case the input frame is "very late". This doesn't seem really necessary though because because we do the same thing after applying effects. This change is also a step towards moving all the calls to VideoFrameRelease/RenderControl to DefaultVideoSink. PiperOrigin-RevId: 698732161
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.