Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova Plugin to display audio information and controls on iOS and Android Lockscreen

I am looking for a plugin or plugins that would allow me to show audio metadata (Title, Artwork etc.) on the Lockscreen of both iOS and Android. Along with that I would like to control the audio from the lockscreen (Play pause etc, it already happens in iOS I need it happen on Android). Lastly the plugin should provide audio information within the control center in iOS and the notification area in Android of cause with the ability to Play Pause etc.

If it is easier to do with some native code tweaks then can someone please point that out also to a tutorial as to how it can be done.

Below are some examples of what I am speaking about

Audio information in Control Center iOS

enter image description here

enter image description here

enter image description here

like image 521
Kern Elliott Avatar asked Jun 20 '15 12:06

Kern Elliott


1 Answers

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

As of writing it has a few issues 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 across iOS, android and windows phone.

like image 186
SuprMan Avatar answered Nov 09 '22 13:11

SuprMan