> For the complete documentation index, see [llms.txt](https://glitch9.gitbook.io/native-media-player/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glitch9.gitbook.io/native-media-player/quick-start/preparation.md).

# Preparation

### **1. Install Newtonsoft.Json**

**Native Media Player** utilizes <mark style="color:red;">**Newtonsoft.Json**</mark> for efficient JSON manipulation, which is essential for communicating with native plugins. Unity Package Manager (UPM) provides a streamlined method for managing package dependencies. Follow the step by step guide below to install <mark style="color:red;">**Newtonsoft.Json**</mark> via UPM:

{% embed url="<https://glitch9.gitbook.io/docs/support/how-to-setup-newtonsoft.json>" %}

### 2. Configure Settings

In Unity, go to **Edit > Preferences** (or **Unity > Preferences** on macOS), then navigate to **Glitch9 > Native Media Player** to access the settings.

<figure><img src="/files/zSNdlJmjm3ma9UQpN6CE" alt=""><figcaption></figcaption></figure>

{% content-ref url="/pages/fKDCGCdABNTiBUm7W2FV" %}
[Configuration Details](/native-media-player/legacy-docs/legacy-api-references/configuration-details.md)
{% endcontent-ref %}

### 3. Add NativeMediaPlayer prefab to your scene

Import <mark style="color:blue;">**NativeMediaPlayer.prefab**</mark> to your scene. It's located under Glitch9\NativePlugins\NativeMediaPlayer\Prefabs.

<figure><img src="/files/L3tXddWTYePsIqMVAgQf" alt=""><figcaption></figcaption></figure>

### 4. Create StreamingAssets folder

If you are using local audio files, create a new folder named **‘StreamingAssets’** under Assets. Put your audio files under this folder. <mark style="color:red;">**You can skip this part if you are only using remote URLs.**</mark>

<figure><img src="/files/PSgGeukcgfdXS83eZ6HY" alt=""><figcaption></figcaption></figure>

### 6. Add track information

Import **a Playlist prefab, multiple Playlist prefabs or a MediaItem prefab** to your scene and attach them to the **MediaSource**. Configure track information(s) on the prefab's Editor Inspector.

<figure><img src="/files/HKXpVtNCxTH0JGcKexzt" alt=""><figcaption><p>Enter track information to Playlist.prefab or MediaItem.prefab</p></figcaption></figure>

### 7. Add album arts

When adding an album art image, click the texture and check **‘Read/Write Enabled**’ under Advanced in the inspector.

{% hint style="warning" %}
If you are having trouble showing the album art, try changing compression format of the image. ASTC compression formats are not supported.
{% endhint %}

![Check Read/Write Enabled](https://blog.kakaocdn.net/dn/bbwHNY/btrD6xFnNUS/ebdLjS6zrjHOW1LA8niAkK/img.png)
