Media Metadata
Basic Properties:
Usage Example
using Glitch9.NativePlugins.NativeMediaPlayer;
using UnityEngine;
public class MediaExample : MonoBehaviour
{
void Start()
{
// Create artwork from a sprite
Sprite sprite = Resources.Load<Sprite>("path_to_sprite");
Artwork artwork = sprite;
// Create media metadata
MediaMetadata metadata = new MediaMetadata
{
Album = "Greatest Hits",
AlbumArtist = "Famous Artist",
Title = "Hit Song",
Artwork = artwork,
Artist = "Famous Artist",
Genre = "Pop",
ReleaseDate = "2023-06-25"
};
// Use the metadata
Debug.Log($"Title: {metadata.Title}, Artist: {metadata.Artist}");
}
}Metadata Retrieval
How Media Metadata works

Last updated