Last updated:
0 purchases
native audio controller
native_audio_controller #
A Flutter plugin to handle pause/play for running music in background from another app
Supported Platforms #
Android: Fully supported
iOS: Under development (not yet implemented)
Usage #
import 'package:native_audio_controller/native_audio_controller.dart';
final _nativeAudioControllerPlugin = NativeAudioController();
// Pause a background music from other app
_nativeAudioControllerPlugin.pauseAudio();
// Resume the music
_nativeAudioControllerPlugin.resumeAudio();
copied to clipboard
Setup, permissions #
Android #
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
copied to clipboard
Usage and Contribution #
Feel free to use the Android functionality.
Contributions are welcome, especially for implementing the iOS part.
Check the GitHub repository for updates and contribute to the development.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.