README updates for session and media2

PiperOrigin-RevId: 402290115
This commit is contained in:
olly 2021-10-11 15:21:46 +01:00 committed by Oliver Woodman
parent 67f9f18d8d
commit b7d53fa4b2
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# ExoPlayer Media2 extension
# Media2 module
The Media2 extension provides builders for [SessionPlayer][] and [MediaSession.SessionCallback][] in
the [Media2 library][].
The Media2 module provides builders for [SessionPlayer][] and
[MediaSession.SessionCallback][] in the [Media2 library][].
Compared to [MediaSessionConnector][] that uses [MediaSessionCompat][], this provides finer grained
control for incoming calls, so you can selectively allow/reject commands per controller.

View File

@ -1,9 +1,9 @@
# ExoPlayer MediaSession extension
# MediaSession module
The MediaSession extension mediates between a Player (or ExoPlayer) instance
and a [MediaSession][]. It automatically retrieves and implements playback
actions and syncs the player state with the state of the media session. The
behaviour can be extended to support other playback and custom actions.
The MediaSession module mediates between a `Player` and a [MediaSession][]. It
automatically retrieves and implements playback actions and syncs the player
state with the state of the media session. The behaviour can be extended to
support other playback and custom actions.
[MediaSession]: https://developer.android.com/reference/android/support/v4/media/session/MediaSessionCompat.html