Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
87adb88f
authored
Jul 06, 2022
by
bachinger
Committed by
Rohit Singh
Jul 07, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix incorrect link tags
PiperOrigin-RevId: 459215618
parent
f00f93a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
View file @
87adb88f
...
@@ -72,10 +72,11 @@ import java.util.concurrent.ExecutionException;
...
@@ -72,10 +72,11 @@ import java.util.concurrent.ExecutionException;
* <h2>Custom commands</h2>
* <h2>Custom commands</h2>
*
*
* Custom actions are sent to the session under the hood. You can receive them by overriding the
* Custom actions are sent to the session under the hood. You can receive them by overriding the
* session callback method {@link MediaSession.Callback#onCustomCommand(MediaSession, ControllerInfo
* session callback method {@link MediaSession.Callback#onCustomCommand(MediaSession,
* controller, SessionCommand, Bundle)}. This is useful because starting with Android 13, the System
* MediaSession.ControllerInfo, SessionCommand, Bundle)}. This is useful because starting with
* UI notification sends commands directly to the session. So handling the custom commands on the
* Android 13, the System UI notification sends commands directly to the session. So handling the
* session level allows you to handle them at the same callback for all API levels.
* custom commands on the session level allows you to handle them at the same callback for all API
* levels.
*
*
* <h2>Drawables</h2>
* <h2>Drawables</h2>
*
*
...
@@ -230,10 +231,10 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
...
@@ -230,10 +231,10 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
* <p>To make the custom layout and commands work, you need to {@linkplain
* <p>To make the custom layout and commands work, you need to {@linkplain
* MediaSession#setCustomLayout(List) set the custom layout of commands} and add the custom
* MediaSession#setCustomLayout(List) set the custom layout of commands} and add the custom
* commands to the available commands when a controller {@linkplain
* commands to the available commands when a controller {@linkplain
* MediaSession.Callback#onConnect(MediaSession,
ControllerInfo) connects to the session}.
* MediaSession.Callback#onConnect(MediaSession,
MediaSession.ControllerInfo) connects to the
*
Controllers that connect after you called {@link MediaSession#setCustomLayout(List)} need the
*
session}. Controllers that connect after you called {@link MediaSession#setCustomLayout(List)}
*
custom command set in {@link MediaSession.Callback#onPostConnect(MediaSession, ControllerInfo)}
*
need the custom command set in {@link MediaSession.Callback#onPostConnect(MediaSession,
* also.
*
MediaSession.ControllerInfo)}
also.
*
*
* @param playerCommands The available player commands.
* @param playerCommands The available player commands.
* @param customLayout The {@linkplain MediaSession#setCustomLayout(List) custom layout of
* @param customLayout The {@linkplain MediaSession#setCustomLayout(List) custom layout of
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment