mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Document need to call MediaSessionCompat.setActive
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=221078075
This commit is contained in:
parent
9ca019b8f8
commit
f5af6e8f16
@ -55,6 +55,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Connects a {@link MediaSessionCompat} to a {@link Player}.
|
* Connects a {@link MediaSessionCompat} to a {@link Player}.
|
||||||
*
|
*
|
||||||
|
* <p>This connector does <em>not</em> 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.
|
||||||
|
*
|
||||||
* <p>The connector listens for actions sent by the media session's controller and implements these
|
* <p>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
|
* 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
|
* automatically synced with the player. The connector can also be optionally extended by providing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user