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
  • Media Event Listener
  • Adding callback events
  • API reference
  1. Functionalities

Media Events

PreviousPlaylistNextUI Components

Last updated 11 months ago

Media Event Listener

Media Event Listener receives native callbacks. A game object with MediaEventListener.cs must be in the scene for the plugin to work properly. The chart below explains how the callbacks work in order.

Callback flowchart

Do not include more than one MediaEventListener.cs in a scene.

Adding callback events

All media events can easily be added using MediaEventListener's custom inspector.

API reference

Add events to the inspector to use the callbacks