
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
cordova-plugin-nowplaying
Advanced tools
Cordova Plugin for setting MPNowPlayingInfoCenter.nowPlayingInfo. Only works with > iOS 7.1. Includes support for downloading MPMediaItemPropertyArtwork asynchronously
Allows setting the lock screen information such as artist, title, and artwork.
cordova plugin add cordova-plugin-nowplaying
Requires linking of MediaPlayer.framework
XCode project settings under
General->Linked Framework and Libraries
Use only the keys that you have available and leave the others out of the javascript object, that way only the correct keys will be sent to the MPNowPlayingInfoCenter.nowPlayingInfo It will only overwrite the values that come in by cloning the old dictionary.
NowPlaying.set({
artwork: "http://www.domain.com/image.png", // Can be http:// https:// or image path relative to NSDocumentDirectory
albumTitle: "The Album Title",
trackCount: 10,
trackNumber: 1,
artist: "The Artist",
composer: "The Composer",
discCount: 1,
discNumber: 1,
genre: "The Genre",
persistentID: 12345,
playbackDuration: 500,
title: "The Title",
elapsedPlaybackTime: 30,
playbackRate: 1,
playbackQueueIndex: 1,
playbackQueueCount: 5,
chapterNumber: 1,
chapterCount: 2
});
When using in a browser environment it will simply log the calls to
NowPlaying.setto the console.
FAQs
Cordova Plugin for setting MPNowPlayingInfoCenter.nowPlayingInfo. Only works with > iOS 7.1. Includes support for downloading MPMediaItemPropertyArtwork asynchronously
We found that cordova-plugin-nowplaying demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.