Cordova plugin for displaying audio information and controls on iOS and Android Lockscreen

I am looking for a plugin or plugins that will allow me to display sound metadata (Title, Artwork, etc.) on Lockscreen on both iOS and Android. Along with this, I would like to control the sound from the lock screen (Play pause, etc., This is already happening on iOS, I need it on Android). Finally, the plugin should provide audio information in the control center in iOS and in the notification area in Android due to the possibility of Play Pause, etc.

If this is easier to do with some custom code settings, then someone can point it out also in the tutorial on how this can be done.

Below are some examples of what I'm talking about

Audio information in Control Center iOS

enter image description here

enter image description here

enter image description here

+7
android ios cordova cordova-plugins audio
source share
2 answers

This plugin does what you are looking for: https://github.com/homerours/cordova-music-controls-plugin

Since writing, he has had several problems with iOS html5 audio (see https://github.com/homerours/cordova-music-controls-plugin/issues/97 and https://github.com/homerours/cordova-music -controls-plugin / issues / 66 ), but works via iOS, Android and Windows phone.

+1
source share

You can also try this, but I never tried. It uses native players for iOS and Android, and will not work on Chrome or your dev machine. https://github.com/wnyc/cordova-plugin-playerhater

In my current project, I have the same need as you (I use HTML5 audio), and I had to build several different plugins.

IOS Focus Audio

https://github.com/AubreyHewes/cordova-background-audio

iOS Metadata:

https://github.com/ChoiZ/NowPlaying https://github.com/shi11/RemoteControls

I am working on a solution for modularly managing sound notifications using the webintent plugin, but I am far from complete. I will send there when this is done.

0
source share

All Articles