Background Audio + Lock Screen Controls for Android by Lumin Plugins

Background Audio + Lock Screen Controls for Android by Lumin Plugins

http://u3d.as/3Vmc

Keep audio playing through screen lock on Android with full notification and lock-screen media controls (play, pause, stop). Powered by ExoPlayer and MediaSession.

• Lock screen & notification media controls (play, pause, stop)
• Stream audio from any HTTPS URL or play local files
• ExoPlayer handles buffering, codecs, and audio focus automatically
• MediaSession integration works with Bluetooth, car systems, and wearables
• Automatic pause when headphones are unplugged
• Real-time progress callbacks (~2Hz) to your C# code
• Proper foreground service — won’t be killed by the OS
• Works alongside Unity’s AudioSource for sound effects and UI audio
• No-op on non-Android platforms — no #if guards needed in your code
• Android API 21–34 tested
• Includes ProGuard/R8 consumer rules for minified builds

The Problem
Unity’s AudioSource goes silent the moment your Android user locks their screen or switches apps. If you’re building a meditation app, music player, podcast app, audiobook reader, or any audio-focused experience, this is a dealbreaker.

The Solution
Background Audio for Android runs a proper Android foreground service using ExoPlayer and MediaSession — the same technology stack that powers Spotify, YouTube Music, and Google Podcasts. Your audio keeps playing through screen lock, app switching, and even headset removal, with full media controls in the notification shade and on the lock screen.

What You Get
• A compiled Android library (AAR) containing the background audio service
• A clean C# bridge class with a simple static API
• A progress callback receiver for real-time UI updates
• Two example scenes demonstrating basic and advanced usage
• Complete documentation with a step-by-step setup guide

Simple API
Starting background audio is a single method call:
AndroidBackgroundAudio.StartBackground(url, "Track Title", "Artist");

Control playback from anywhere:
AndroidBackgroundAudio.Play();
AndroidBackgroundAudio.Pause();
AndroidBackgroundAudio.Seek(positionMs);
AndroidBackgroundAudio.Stop();

Requirements
• Unity 2020.3 LTS or newer
• Android API 21+ (Android 5.0 Lollipop)
• AndroidX enabled

Price $19.99

HI-FI News

via Unity Asset Store newest packages http://www.unity3d.com/

April 29, 2026 at 03:03PM