media/libraries/ui
ibaker 4087a011e2 Fix recursive loop when registering controller visibility listeners
There are two overloads of this method due to a type 'rename' from
`PlayerControlView.VisibilityListener` to
`PlayerView.ControllerVisibilityListener`. Currently when you call one
overload it passes `null` to the other one (to clear the other listener).
Unfortunately this results in it clearing itself, because it receives
a null call back!

This change tweaks the documentation to clarify that the 'other'
listener is only cleared if you pass a non-null listener in. This solves
the recursive problem, and allows the 'legacy' visibility listener to be
successfully registered.

Issue: androidx/media#229

#minor-release

PiperOrigin-RevId: 496876397
2022-12-21 15:36:58 +00:00
..
src Fix recursive loop when registering controller visibility listeners 2022-12-21 15:36:58 +00:00
build.gradle Rollback of c5dc5aeb11 2022-12-12 11:40:08 +00:00
lint-baseline.xml Add lint base xml file for string.xml files 2022-06-16 12:58:29 +00:00
proguard-rules.txt Remove LegacyPlayerView reference from comment in proguard-rules.txt 2022-02-07 10:50:22 +00:00
README.md Add javadoc links to README files 2022-12-12 11:19:23 +00:00

UI module

Provides UI components for media playback.

Getting the module

The easiest way to use the module is to add it as a gradle dependency:

implementation 'androidx.media3:media3-ui: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.