Gita Assets
Unity / Plugin

Native Media Player (Android & iOS)

Overview

Native Media Player is a powerful plugin that brings all the native audio player functions including full background (remote) playback controls. It supports both Android and iOS, providing a consistent experience across devices. Local audio (StreamingAssets, PersistentDataPath) and remote audio are both supported; audio continues to play when the app goes into the background, and playback can be managed while in the background. Media metadata is fetched automatically from the audio source, and custom media metadata can be created and managed. Remote action buttons and event listeners are fully customizable, and the audio setup can be tested directly within the Unity Editor. Since 5.0.0, the Android side has been completely rewritten to support Android SDK 35+, and iOS uses AVPlayer only.

Key features

Easy to Use: user-friendly interface and straightforward setup;
Cross-Platform API: supports both Android and iOS, providing a consistent experience across devices;
Drag and Drop Components: simplifies the integration process;
Local and Remote Audio Support: StreamingAssets, PersistentDataPath, download and play, and remote URL streaming;
Background Playback: continues to play audio when the app goes into the background;
Background Controls: manage audio playback while the app is in the background;
Automatic Metadata Retrieval: automatically fetches media metadata from the audio source;
Custom Metadata: create and manage custom media metadata;
Modular Remote Action Buttons: fully customizable remote action buttons for playback control;
Modular Event Listeners: fully customizable event listeners to handle various playback events;
Unity Editor Test Mode: test the audio setup directly within the Unity Editor;
Playback Controls: Play, Pause, Stop, Next, Previous, Fast-forward, Rewind, Seek-To;
Playback Modes: Repeat, Loop, Shuffle;
Built-in UI: media buttons, volume bar, seek bar;
Native Event Listeners: player states onIsPlayingChanged, onIsLoadingChanged, onIsBufferingChanged, onPrepared, onComplete, onError, onDownloadProgress; metadata updates onPlaylistUpdated.

Compatibility

Unity 6000.3.8f1: Built-in, URP and HDRP are all supported. iOS: supports 64-bit devices running iOS 11.0 and above. Android: Unity 6+ required; supports both 32-bit and 64-bit devices (SDK: min 23, max 36). Unity 2022 and earlier are no longer compatible; Android 35 blocks background audio on legacy Media2, so the plugin was fully rewritten using Media3. The version sold by this store is 5.4.6, which matches the current official version; actual support is determined by the supplied version 5.4.6.

Requirements

Unity 6 or higher; plugin v5 or higher; JDK 17 or higher. The plugin will not work on Unity versions below 6.

Render pipeline compatibility

UnityBuilt-inURPHDRP
6000.3.8f1

Technical specifications

Original creator
Glitch9 Inc.
Current official version
5.4.6
Supported engines
6000.3.8, 6000.3.8f1
Render pipelines
6000.3.8f1 · URP / HDRP / Built-in
Official file size
5.90 MB
Official update date
2026-09-04
Asset file count
280
Package format
unitypackage
First official release
2022-04-05

Tags

Full description

Due to new Android background audio policies and the deprecation of legacy components, SDK 35+ builds now require Unity 6 or higher. Preview version of Native Media Player 5.0.0+ for Unity6(Android Java17) is availble now. I've completely rewrote Android side to support Android SDK35+ and refactored iOS to only use AVPlayer instead of both AVAudioPlayer and AVPlayer since Apple no longer maintains AVAudioPlayer. I tested the preview build throughly but this version may still be buggy. Please let me know on discord if you have any issue. Native Media Player is a powerful plugin that brings all the native audio player functions including full background(remote) playback controls. >> Online Documents Core Functionalities: Easy to Use: User-friendly interface and straightforward setup. Cross-Platform API: Supports both Android and iOS, providing a consistent experience across devices. Proven Technology: Based on three years of experience in Unity audio plugin development. Drag and Drop Components: Simplifies the integration process with easy-to-use components. Local and Remote Audio Support: Play audio from local (StreamingAssets, PersistantDataPath) and remote sources. Background Playback: Continues to play audio when the app goes into the background. Background Controls: Manage audio playback while the app is in the background. Automatic Metadata Retrieval: Automatically fetches media metadata from the audio source. Custom Metadata: Create and manage custom media metadata. Modular Remote Action Buttons: Fully customizable remote action buttons for playback control. Modular Event Listeners: Fully customizable event listeners to handle various playback events. Unity Editor Test Mode: Test your audio setup directly within the Unity Editor.

Local and Remote Audio Support: Streaming Assets: Play audio from Unity's StreamingAssets folder. Persistant Data Path: Play audio from the app's data path. Download and Play: Download audio from a url, save it to the app's data path, and play audio from there. Remote URL: Stream audio from a url.

Playback Features: Playback Controls: Play, Pause, Stop, Next, Previous, Fast-forward, Rewind, Seek-To. Playback Modes: Repeat, Loop, Shuffle. Built-in UI: Media buttons, Volume bar, Seek bar.

Native Event Listeners: Player States: onIsPlayingChanged, onIsLoadingChanged, onIsBufferingChanged, onPrepared, onComplete, onError, onDownloadProgress Metadata Updates: onPlaylistUpdated

Platform Support: iOS: Supports 64-bit devices running iOS 11.0 and above. Android: Unity6+ required. Supports both 32-bit and 64-bit devices (sdk: min 23, max 36)

*Asset uses artwork media samples under Creative Commons License. See Third-Party Notices.txt file in package for details.

Unity 2022 and earlier are no longer compatible. Android 35 blocks background audio on legacy Media2, so the plugin was fully rewritten using Media3. Requirements: Unity 6+ Plugin v5+ JDK 17+

The plugin will not work on Unity versions below 6.

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Native Media Player (Android & iOS) · Unity Plugin · Preview 3Native Media Player (Android & iOS) · Unity Plugin · Preview 4Native Media Player (Android & iOS) · Unity Plugin · Preview 5Native Media Player (Android & iOS) · Unity Plugin · Preview 6Native Media Player (Android & iOS) · Unity Plugin · Preview 7
Contact support