diff --git a/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java b/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java index 27ce380a6d..de14cbf6d7 100644 --- a/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java +++ b/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java @@ -55,6 +55,11 @@ import java.util.Map; /** * Connects a {@link MediaSessionCompat} to a {@link Player}. * + *
This connector does not call {@link MediaSessionCompat#setActive(boolean)}, and so + * application code is responsible for making the session active when desired. A session must be + * active for transport controls to be displayed (e.g. on the lock screen) and for it to receive + * media button events. + * *
The connector listens for actions sent by the media session's controller and implements these * actions by calling appropriate player methods. The playback state of the media session is * automatically synced with the player. The connector can also be optionally extended by providing