Playlist
Playlist is a basic media source type that manages multiple media items. It can only have one UriType which determines which native player the plugin is going to use, and pass the media data to the corresponding player. To add a new MediaItem to Playlist, simply click on the 'Add a new media item' button in the inspector.
If you are using StreamingAssets, drag the file directly into the box under 'Put in a file from StreamingAssets folder below'. The inspector will automatically detect the filename and use it as MediaUri of the media item. If you are using RemoteUrl, the box becomes a textbox where you can enter the URL.
NativeMediaPlayer will try to retrieve the media metadata using native APIs by the default, but you can also choose to customize media metadata and prevent from triggering those native APIs. Choosing custom media metadata will expand the inspector menu and show editable property fields of each metadata.
Creating a playlist at runtime
Playlist can be dynamically created anytime at runtime.
Modifying playlist at runtime
It’s possible to dynamically modify a playlist by adding, and removing media items. This can be done both before and during playback by calling the corresponding playlist API methods:
Replacing and clearing the entire playlist are also supported:
Querying media items
Media items contained in a playlist can be individually queried using playlist.MediaItem[id].
API reference
pagePlaylistLast updated