MediaItem

Public Methods

MediaItem

MediaItem(string uri, MediaMetadata metadata)

Create a MediaItem.

void

Sync()

Send the MediaItem to the native side, so that it can be readible from the native plugin. Use this fuction before preparing the native player.

Properties

int

Id

The index number of the MediaItem

UriType

Path

An enum value that indicates where your sources are located. short UriType.StreamingAssets = 0 short UriType.RemoteURL = 1

string

MediaUri

Uri path of the MediaItem.

bool

HasCustomMediaMetadata (read-only)

Returns true if the MediaItem is set to use a customized MediaMetadata and does not retrieve from the media file

string

Title

Title of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_TITLE (Android) MPMediaItemPropertyTitle (iOS)

string

Artist

Artist of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_ARTIST (Android), MPMediaItemPropertyArtist (iOS)

string

AlbumTitle

Album title of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_ALBUM (Android), MPMediaItemPropertyAlbumTitle (iOS)

string

AlbumArtist

Album artist of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_ALBUM_ARTIST (Android), MPMediaItemPropertyAlbumArtist (iOS)

string

Genre

Genre of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_GENRE (Android), MPMediaItemPropertyGenre (iOS)

string

ReleaseDate

Release date of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_DATE (Android), MPMediaItemPropertyReleaseDate (iOS)

Sprite

Artwork

Artwork of the MediaItem. 💡 Refers to following native parameters METADATA_KEY_ART (Android), MPMediaItemPropertyArtwork (iOS)

Last updated