Koiwu Beyan
PhoneGap / Cordova iOS plugin that allows you to add metadatas in NowPlayingInfoCenter (MPNowPlayingInfoCenter) to your app
Find Version 1 (by François LASSERRE) here: https://github.com/ChoiZ/NowPlaying
- Phonegap 3.0 and IOS 7
Add the plugin much like any other:
- Add MediaPlayer.framework in your project.
- Add the NowPlaying.h and NowPlaying.m classes to your Plugins folder in Xcode
- Add the NowPlaying.js file to your www folder
- Add the NowPlaying.js to your html file. eg:
<script type="text/javascript" charset="utf-8" src="NowPlaying.js"></script>
- Add the plugin to your config.xml:
<plugin name="NowPlaying" value="NowPlaying" />
(or if you are running an older version of PhoneGap / Cordova, Cordova.plist under Plugins (key: "NowPlaying" value: "NowPlaying"))
function onDeviceReady() {
var nowPlaying = window.plugins.nowPlaying;
artist = "Daft Punk";
title = "One More Time";
album = "Discovery";
nowPlaying.updateMetas(artist,title,station);
}