Playlist
Public Methods
Playlist | Playlist(int id, UriType path, List<MediaItem> mediaItems = null, string title = null, string artist = null) | Build a new Playlist |
void | AddMediaItem(MediaItem item = null) | Add an empty MediaItem |
void | AddMediaItem(int index, MediaItem item) | Add a MediaItem |
void | RemoveMediaItem(int index) | Remove a MediaItem |
void | Sync() | Send the Playlist 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 | Index number of the Playlist. |
UriType | Path | An enum value that indicates where your sources are located. short UriType.StreamingAssets = 0 short UriType.RemoteURL = 1 |
string | Title | Title of the Playlist. |
void | Artist | Artist of the Playlist. |
List<MediaItem> | MediaItems | MediaItems in the Playlist. |
int | Count | Total number of the MediaItems. |
Parameters
UriType | StreamingAssets | returns (short) 0 |
UriType | RemoteURL | returns (short) 1 |
Last updated