Google is committed to advancing racial equity for Black communities. See how.

MediaConstants

open class MediaConstants
kotlin.Any
   ↳ androidx.media2.session.MediaConstants

Media constants for sharing constants between media provider and consumer apps

Summary

Constants
static String

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

static String

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

static String

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

static String

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

static String

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

static String

A android.net.Uri query used by .MediaControllerCompat.TransportControls#prepareFromMediaId, and .TransportControls#playFromMediaId See MediaSession.SessionCallback#onSetMediaUri for more details.

static String

A android.net.Uri query used by .MediaControllerCompat.TransportControls#prepareFromSearch, and .TransportControls#playFromSearch See MediaSession.SessionCallback#onSetMediaUri for more details.

static String

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

Constants

MEDIA_URI_AUTHORITY

static val MEDIA_URI_AUTHORITY: String

A android.net.Uri authority used in a media Uri. See MediaSession.SessionCallback#onSetMediaUri for more details.

Value: "media2-session"

MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

static val MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID: String

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

Value: "playFromMediaId"
static val MEDIA_URI_PATH_PLAY_FROM_SEARCH: String

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

Value: "playFromSearch"

MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

static val MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID: String

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

Value: "prepareFromMediaId"
static val MEDIA_URI_PATH_PREPARE_FROM_SEARCH: String

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

Value: "prepareFromSearch"

MEDIA_URI_QUERY_ID

static val MEDIA_URI_QUERY_ID: String

A android.net.Uri query used by .MediaControllerCompat.TransportControls#prepareFromMediaId, and .TransportControls#playFromMediaId See MediaSession.SessionCallback#onSetMediaUri for more details.

Value: "id"

MEDIA_URI_QUERY_QUERY

static val MEDIA_URI_QUERY_QUERY: String

A android.net.Uri query used by .MediaControllerCompat.TransportControls#prepareFromSearch, and .TransportControls#playFromSearch See MediaSession.SessionCallback#onSetMediaUri for more details.

Value: "query"

MEDIA_URI_SCHEME

static val MEDIA_URI_SCHEME: String

A android.net.Uri scheme used in a media Uri. See MediaSession.SessionCallback#onSetMediaUri for more details.

Value: "androidx"