media/library
tonihei 3dfbfd3f05 Clarify and correct allowed multi-threading for some Player methods
Some Player methods like getting the Looper and adding listeners
were always allowed to be called from any thread, but this is
undocumented. This change makes the threading rules of these
methods more explicit.

Removing listeners was never meant to be called from another thread
and we also don't support it safely because final callbacks may
be triggered from the wrong thread. To find potential issues, we
can assert the correct thread when releasing listeners.

Finally, there is a potential race condition when calling addListener
from a different thread at the same time as release, which may lead to
a registered listener that could receive callbacks after the player is
released.

PiperOrigin-RevId: 493843981
(cherry picked from commit e9364b0f6e)
2023-01-25 18:29:34 +00:00
..
all Fix minimum API level issue 2022-02-08 11:03:36 +00:00
common Clarify and correct allowed multi-threading for some Player methods 2023-01-25 18:29:34 +00:00
core Clarify and correct allowed multi-threading for some Player methods 2023-01-25 18:29:34 +00:00
dash Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
database Reformat some javadoc 2022-02-18 15:02:33 +00:00
datasource Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
decoder Expect PresentationTime Discontinuity During Stream Transitions 2022-04-26 14:25:46 +01:00
effect Add javadoc links to README files 2023-01-25 18:29:34 +00:00
extractor Split SubripDecoder and ParsableByteArray tests 2023-01-25 17:39:48 +00:00
hls Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
rtsp Add javadoc links to README files 2023-01-25 18:29:34 +00:00
smoothstreaming Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
transformer Add javadoc links to README files 2023-01-25 18:29:34 +00:00
ui Mark broadcast receivers as not exported 2023-01-25 17:33:05 +00:00
README.md Update to androidx.media3 2021-10-27 09:12:46 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.