native_audio_controller 0.0.1+1 copy "native_audio_controller: ^0.0.1+1" to clipboard
native_audio_controller: ^0.0.1+1 copied to clipboard

PlatformAndroid

A Flutter plugin to handle pause/play for running music in background from another app

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();   

Setup, permissions #

Android #

<uses-permission android:name="android.permission.BROADCAST_STICKY" />

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.
5
likes
160
pub points
31%
popularity

Publisher

unverified uploader

A Flutter plugin to handle pause/play for running music in background from another app

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_audio_controller