mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Some player method calls sent from MediaControllers accept int or float values with a very clear API contract that disallows some values. Filtering by these values early avoids calling a Player implementation with invalid values. PiperOrigin-RevId: 600413993 (cherry picked from commit c64b271f077939abcd33353efb50f1b0b2ca7588)
Session module
This module provides media session functionality through which media information and controls can be exposed to the Android platform, as well as to other processes and applications.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-session: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.