Socket
Socket
Sign inDemoInstall

chromecasts

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromecasts - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

18

index.js

@@ -64,5 +64,17 @@ var castv2 = require('castv2-client')

player.emit('connect')
client.launch(castv2.DefaultMediaReceiver, function (err, p) {
client.getSessions(function (err, sess) {
if (err) return cb(err)
var session = sess[0]
if (session && session.appId === castv2.DefaultMediaReceiver.APP_ID) {
client.join(session, castv2.DefaultMediaReceiver, ready)
} else {
client.launch(castv2.DefaultMediaReceiver, ready)
}
})
function ready (err, p) {
if (err) return cb(err)
player.emit('ready')

@@ -79,3 +91,3 @@

cb(null, p)
})
}
})

@@ -192,3 +204,3 @@ })

}
player.volume = function (vol, cb) {

@@ -195,0 +207,0 @@ if (!cb) cb = noop

2

package.json
{
"name": "chromecasts",
"version": "1.6.0",
"version": "1.7.0",
"description": "Query your local network for Chromecasts and have them play media",

@@ -5,0 +5,0 @@ "main": "index.js",

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