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

node-red-contrib-play-audio

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-play-audio - npm Package Compare versions

Comparing version 2.2.4 to 2.3.0

2

package.json
{
"name": "node-red-contrib-play-audio",
"version": "2.2.4",
"version": "2.3.0",
"description": "A node-red node for playing audio in the browser",

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

@@ -19,2 +19,3 @@ /**

module.exports = function(RED) {
var playaudionodeid;
function PlayAudioNode(config) {

@@ -24,2 +25,3 @@ RED.nodes.createNode(this,config);

var node = this;
playaudionodeid = this.id;
this.on('input', function(msg) {

@@ -32,5 +34,11 @@ if (Buffer.isBuffer(msg.payload)) {

}
node.status({fill:"blue",shape:"dot",text:"playing"});
});
}
RED.nodes.registerType("play audio", PlayAudioNode);
RED.httpAdmin.get("/playaudio", RED.auth.needsPermission('playaudio.read'), function(req,res) {
var node = RED.nodes.getNode(playaudionodeid);
if (node != null) { node.status({}); }
res.json("OK");
});
}

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