Native Media Player
Glitch9 Inc.Main Docs.
  • Introduction
    • Native Media Player
    • Preparation
    • Initialization
  • Functionalities
    • Media Item
    • Media Metadata
    • Playlist
    • Media Events
    • UI Components
    • Android Settings
    • iOS Settings
  • Advanced
    • Manual Initialization
    • Creating Playlist at Runtime
    • Single Media Item Playlists
  • API Reference
    • MediaPlayer
      • Properties
      • Methods
    • MediaEvents
    • MediaItem
    • MediaMetadata
    • Playlist
    • Configuration Details
  • Support
    • FAQ
    • Troubleshooting
      • SeekTo (Seekbar) doesn't work
      • java.lang.NoClassDefFoundError
      • One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified
      • AndroidX Build Error: resource android:attr/lStar not found.
    • Update Logs
Powered by GitBook
On this page
  • 0. Initializing manually
  • 1. Initializing with a media item
  • 2. Initializing with a playlist
  • 3. Initializing with playlists
  1. Introduction

Initialization

PreviousPreparationNextMedia Item

Last updated 10 months ago

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

0. Initializing manually

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.

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.

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.

Manual Initialization