Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-music-controls

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-music-controls - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

package.json
{
"name": "cordova-plugin-music-controls",
"version": "1.4.0",
"version": "1.4.1",
"description": "Music controls for Cordova apps",

@@ -5,0 +5,0 @@ "cordova": {

@@ -74,2 +74,3 @@ # Cordova Music Controls Plugin

// Headset events (Android only)
// All media button events are listed below
case 'music-controls-media-button' :

@@ -100,4 +101,18 @@ // Do something

MusicControls.updateIsPlaying(true); // toggle the play/pause notification button
MusicControls.updateDismissable(true);
```
- List of media button events (Android only):
```javascript
'music-controls-media-button-next', 'music-controls-media-button-pause', 'music-controls-media-button-play',
'music-controls-media-button-play-pause', 'music-controls-media-button-previous', 'music-controls-media-button-stop',
'music-controls-media-button-fast-forward', 'music-controls-media-button-rewind', 'music-controls-media-button-skip-backward',
'music-controls-media-button-skip-forward', 'music-controls-media-button-step-backward', 'music-controls-media-button-step-forward',
'music-controls-media-button-meta-left', 'music-controls-media-button-meta-right', 'music-controls-media-button-music',
'music-controls-media-button-volume-up', 'music-controls-media-button-volume-down', 'music-controls-media-button-volume-mute',
'music-controls-media-button-headset-hook'
// Default:
'music-controls-media-button'
```
## Contributing

@@ -104,0 +119,0 @@

@@ -24,2 +24,5 @@ module.exports = {

},
updateDismissable: function (dismissable, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, 'MusicControls', 'updateDismissable', [{dismissable: dismissable}]);
},

@@ -26,0 +29,0 @@ destroy: function (successCallback, errorCallback) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc