Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.set
to the console.
FAQs
Cordova Plugin for setting MPNowPlayingInfoCenter.nowPlayingInfo. Only works with > iOS 7.1. Includes support for downloading MPMediaItemPropertyArtwork asynchronously
The npm package cordova-plugin-nowplaying receives a total of 1 weekly downloads. As such, cordova-plugin-nowplaying popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.