• Home
Name Date Size #Lines LOC

..--

src/main/03-May-2024-2,6051,689

README.mdD03-May-20241.1 KiB3321

build.gradleD03-May-20241.6 KiB5042

README.md

1# ExoPlayer MediaSession extension #
2
3The MediaSession extension mediates between a Player (or ExoPlayer) instance
4and a [MediaSession][]. It automatically retrieves and implements playback
5actions and syncs the player state with the state of the media session. The
6behaviour can be extended to support other playback and custom actions.
7
8[MediaSession]: https://developer.android.com/reference/android/support/v4/media/session/MediaSessionCompat.html
9
10## Getting the extension ##
11
12The easiest way to use the extension is to add it as a gradle dependency:
13
14```gradle
15implementation 'com.google.android.exoplayer:extension-mediasession:2.X.X'
16```
17
18where `2.X.X` is the version, which must match the version of the ExoPlayer
19library being used.
20
21Alternatively, you can clone the ExoPlayer repository and depend on the module
22locally. Instructions for doing this can be found in ExoPlayer's
23[top level README][].
24
25[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md
26
27## Links ##
28
29* [Javadoc][]: Classes matching
30  `com.google.android.exoplayer2.ext.mediasession.*` belong to this module.
31
32[Javadoc]: https://exoplayer.dev/doc/reference/index.html
33