UriMediaItem

Added in 1.0.0
Deprecated in 1.3.0

class UriMediaItem : MediaItem


Structure for media item descriptor for Uri.

Users should use Builder to create UriMediaItem.

You cannot directly send this object across the process through ParcelUtils. See MediaItem for detail.

See also
MediaItem

Summary

Nested types

This class is deprecated.

androidx.media2 is deprecated.

Public functions

Uri

Return the Uri of this media item.

(Mutable)List<HttpCookie!>?

Return the Uri cookies of this media item.

(Mutable)Map<String!, String!>?

Return the Uri headers of this media item.

Inherited Constants

From androidx.media2.common.MediaItem
const Long
POSITION_UNKNOWN = 576460752303423487

Used when a position is unknown.

Inherited functions

From androidx.media2.common.MediaItem
Long

Return the position in milliseconds at which the playback will end.

MediaMetadata?

Gets the metadata of the media.

Long

Return the position in milliseconds at which the playback will start.

Unit

Sets metadata.

String!

Public functions

getUri

Added in 1.0.0
Deprecated in 1.3.0
fun getUri(): Uri

Return the Uri of this media item.

Returns
Uri

the Uri of this media item

getUriCookies

Added in 1.0.0
Deprecated in 1.3.0
fun getUriCookies(): (Mutable)List<HttpCookie!>?

Return the Uri cookies of this media item.

Returns
(Mutable)List<HttpCookie!>?

the Uri cookies of this media item

getUriHeaders

Added in 1.0.0
Deprecated in 1.3.0
fun getUriHeaders(): (Mutable)Map<String!, String!>?

Return the Uri headers of this media item.

Returns
(Mutable)Map<String!, String!>?

the Uri headers of this media item