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
40f5fb55
authored
May 30, 2022
by
bachinger
Committed by
Marc Baechinger
May 30, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add constants for custom actions UI customization
PiperOrigin-RevId: 451875964
parent
a40d3e4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
libraries/session/src/main/java/androidx/media3/session/MediaConstants.java
libraries/session/src/main/java/androidx/media3/session/MediaConstants.java
View file @
40f5fb55
...
...
@@ -16,6 +16,9 @@
package
androidx
.
media3
.
session
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.support.v4.media.session.MediaControllerCompat
;
import
android.support.v4.media.session.MediaSessionCompat
;
import
android.support.v4.media.session.PlaybackStateCompat
;
import
androidx.media3.session.MediaLibraryService.LibraryParams
;
...
...
@@ -116,6 +119,41 @@ public final class MediaConstants {
public
static
final
String
MEDIA_URI_QUERY_URI
=
"uri"
;
/**
* Bundle key to indicate a preference that a region of space for the skip to next control should
* always be blocked out in the UI, even when the seek to next standard action is not supported.
*
* <p>This may be used when the session temporarily disallows {@link
* androidx.media3.common.Player#COMMAND_SEEK_TO_NEXT} by design.
*
* @see MediaSession#setSessionExtras(Bundle)
* @see MediaSessionCompat#setExtras(Bundle)
* @see MediaController.Listener#onExtrasChanged(MediaController, Bundle)
* @see MediaControllerCompat.Callback#onExtrasChanged(Bundle)
* @see androidx.media3.common.Player#COMMAND_SEEK_TO_NEXT
* @see androidx.media3.common.Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM
*/
public
static
final
String
EXTRAS_KEY_SLOT_RESERVATION_SEEK_TO_NEXT
=
"android.media.playback.ALWAYS_RESERVE_SPACE_FOR.ACTION_SKIP_TO_NEXT"
;
/**
* Bundle key to indicate a preference that a region of space for the skip to previous control
* should always be blocked out in the UI, even when the seek to previous standard action is not
* supported.
*
* <p>This may be used when the session temporarily disallows {@link
* androidx.media3.common.Player#COMMAND_SEEK_TO_PREVIOUS} by design.
*
* @see MediaSession#setSessionExtras(Bundle)
* @see MediaSessionCompat#setExtras(Bundle)
* @see MediaController.Listener#onExtrasChanged(MediaController, Bundle)
* @see MediaControllerCompat.Callback#onExtrasChanged(Bundle)
* @see androidx.media3.common.Player#COMMAND_SEEK_TO_PREVIOUS
* @see androidx.media3.common.Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM
*/
public
static
final
String
EXTRAS_KEY_SLOT_RESERVATION_SEEK_TO_PREV
=
"android.media.playback.ALWAYS_RESERVE_SPACE_FOR.ACTION_SKIP_TO_PREVIOUS"
;
/**
* The extras key for the localized error resolution string.
*
* <p>Use this key to populate the extras bundle of the {@link LibraryParams} when {@link
...
...
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