Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/main/ | H | 25-Apr-2025 | - | 2,645 | 1,732 | |
README.md | H A D | 25-Apr-2025 | 1.1 KiB | 32 | 20 | |
build.gradle | H A D | 25-Apr-2025 | 1.2 KiB | 33 | 29 |
README.md
1# MediaSession module 2 3The MediaSession module mediates between a `Player` and a [MediaSession][]. It 4automatically retrieves and implements playback actions and syncs the player 5state with the state of the media session. The behaviour can be extended to 6support other playback and custom actions. 7 8[MediaSession]: https://developer.android.com/reference/android/support/v4/media/session/MediaSessionCompat.html 9 10## Getting the module 11 12The easiest way to get the module 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 other media 19modules being used. 20 21Alternatively, you can clone this GitHub project and depend on the module 22locally. Instructions for doing this can be found in the [top level README][]. 23 24[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md 25 26## Links 27 28* [Javadoc][]: Classes matching 29 `com.google.android.exoplayer2.ext.mediasession.*` belong to this module. 30 31[Javadoc]: https://exoplayer.dev/doc/reference/index.html 32