MediaConstants

public class MediaConstants
extends Object

java.lang.Object
   ↳ androidx.media2.session.MediaConstants


Media constants for sharing constants between media provider and consumer apps

Summary

Constants

String MEDIA_URI_AUTHORITY

A Uri authority used in a media Uri.

String MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

A Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

String MEDIA_URI_PATH_PLAY_FROM_SEARCH

A Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

String MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

A Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

String MEDIA_URI_PATH_PREPARE_FROM_SEARCH

A Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

String MEDIA_URI_PATH_SET_MEDIA_URI

A Uri path for encoding how the Uri will be translated when connected to MediaSessionCompat.

String MEDIA_URI_QUERY_ID

A Uri query for media ID.

String MEDIA_URI_QUERY_QUERY

A Uri query for search query.

String MEDIA_URI_QUERY_URI

A Uri query for media Uri.

String MEDIA_URI_SCHEME

A Uri scheme used in a media Uri.

Inherited methods

Constants

MEDIA_URI_AUTHORITY

public static final String MEDIA_URI_AUTHORITY

A Uri authority used in a media Uri. See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "media2-session"

MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

public static final String MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

A Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "playFromMediaId"

public static final String MEDIA_URI_PATH_PLAY_FROM_SEARCH

A Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "playFromSearch"

MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

public static final String MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

A Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "prepareFromMediaId"

public static final String MEDIA_URI_PATH_PREPARE_FROM_SEARCH

A Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "prepareFromSearch"

MEDIA_URI_PATH_SET_MEDIA_URI

public static final String MEDIA_URI_PATH_SET_MEDIA_URI

A Uri path for encoding how the Uri will be translated when connected to MediaSessionCompat. See MediaController.setMediaUri(Uri, Bundle) for more details.

Constant Value: "setMediaUri"

MEDIA_URI_QUERY_ID

public static final String MEDIA_URI_QUERY_ID

A Uri query for media ID.

Constant Value: "id"

MEDIA_URI_QUERY_QUERY

public static final String MEDIA_URI_QUERY_QUERY

A Uri query for search query.

Constant Value: "query"

MEDIA_URI_QUERY_URI

public static final String MEDIA_URI_QUERY_URI

A Uri query for media Uri.

Constant Value: "uri"

MEDIA_URI_SCHEME

public static final String MEDIA_URI_SCHEME

A Uri scheme used in a media Uri. See MediaController.setMediaUri(Uri, Bundle) and MediaSession.SessionCallback.onSetMediaUri(MediaSession, MediaSession.ControllerInfo, Uri, Bundle) for more details.

Constant Value: "androidx"