MediaConstants

Added in 1.1.0
Deprecated in 1.3.0

public class MediaConstants


Media constants for sharing constants between media provider and consumer apps

Summary

Constants

static final String
MEDIA_URI_AUTHORITY = "media2-session"

A android.net.Uri authority used in a media Uri.

static final String

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See setMediaUri and onSetMediaUri for more details.

static final String

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See setMediaUri and onSetMediaUri for more details.

static final String

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See setMediaUri and onSetMediaUri for more details.

static final String

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See setMediaUri and onSetMediaUri for more details.

static final String

A android.net.Uri path for encoding how the Uri will be translated when connected to android.support.v4.media.session.MediaSessionCompat.

static final String

A android.net.Uri query for media ID.

static final String

A android.net.Uri query for search query.

static final String

A android.net.Uri query for media Uri.

static final String
MEDIA_URI_SCHEME = "androidx"

A android.net.Uri scheme used in a media Uri.

Constants

MEDIA_URI_AUTHORITY

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_AUTHORITY = "media2-session"

A android.net.Uri authority used in a media Uri. See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID = "playFromMediaId"

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PLAY_FROM_SEARCH

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_PATH_PLAY_FROM_SEARCH = "playFromSearch"

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID = "prepareFromMediaId"

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PREPARE_FROM_SEARCH

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_PATH_PREPARE_FROM_SEARCH = "prepareFromSearch"

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_SET_MEDIA_URI

Added in 1.2.0
Deprecated in 1.3.0
public static final String MEDIA_URI_PATH_SET_MEDIA_URI = "setMediaUri"

A android.net.Uri path for encoding how the Uri will be translated when connected to android.support.v4.media.session.MediaSessionCompat. See setMediaUri for more details.

MEDIA_URI_QUERY_ID

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_QUERY_ID = "id"

A android.net.Uri query for media ID.

MEDIA_URI_QUERY_QUERY

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_QUERY_QUERY = "query"

A android.net.Uri query for search query.

MEDIA_URI_QUERY_URI

Added in 1.2.0
Deprecated in 1.3.0
public static final String MEDIA_URI_QUERY_URI = "uri"

A android.net.Uri query for media Uri.

See also
setMediaUri

MEDIA_URI_SCHEME

Added in 1.1.0
Deprecated in 1.3.0
public static final String MEDIA_URI_SCHEME = "androidx"

A android.net.Uri scheme used in a media Uri. See setMediaUri and onSetMediaUri for more details.