> 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/initialization.md).

# Initialization

**Native Media Player** requires at least one audio asset to be initialized. You can initialize the plugin with following options:

<figure><img src="/files/FB6FVsJ2DglsGJvihEDk" alt="" width="563"><figcaption></figcaption></figure>

## 0. Initializing manually

{% content-ref url="/pages/huvKSBQtBol9PR6f1NfF" %}
[Manual Initialization](/native-media-player/quick-start/initialization/manual-initialization.md)
{% endcontent-ref %}

## 1. Initializing with a media item

1. Make sure the `AutoInit` options is set to `true` in the preferences.
2. Add a **MediaItem.prefab** to your scene.
3. Select **Media Item** in the inspector.
4. Put the MediaItem.prefab into the Default Media Item in the inspector.

<figure><img src="/files/TnaKqjz1Yl4KtLu16xgd" alt="" width="551"><figcaption></figcaption></figure>

## 2. Initializing with a playlist

1. Make sure the `AutoInit` options is set to `true` in the preferences.
2. Add a **Playlist.prefab** to your scene.
3. Select **Playlist** in the inspector.
4. Put the Playlist.prefab into the Default Media Item in the inspector.

<figure><img src="/files/5B2caAOLw75bNtd2xyls" alt="" width="552"><figcaption></figcaption></figure>

## 3. Initializing with playlists

1. Make sure the `AutoInit` options is set to `true` in the preferences.
2. Add a desired number of **Playlist.prefab's** to your scene.
3. Select **Playlists** in the inspector.
4. Put the Playlist.prefab's into the Default Media Item in the inspector.
5. You can drag and switch the orders of the playlists.

<div data-full-width="false"><figure><img src="/files/gaLyO4w4oHxMLnHt1y44" alt="" width="551"><figcaption></figcaption></figure></div>
