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

airplay-js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airplay-js - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

2

airplay/device.js

@@ -139,3 +139,3 @@ /**

console.log(typeof(media))
self.hls.start( 7001 );
self.hls.start( 7001 + this.id );
if (typeof(media) != 'string'){

@@ -142,0 +142,0 @@ self.hls.setSubtitles(media.subtitles)

@@ -109,7 +109,9 @@ /**

this.file = fileFullPath;
self.checkFirst = spawn('whereis',['ffprobe'])
var whichCommand = /^win/.test(process.platform) ? 'where' : 'which'
self.checkFirst = spawn(whichCommand,['ffprobe'])
self.checkFirst.on('close', function(data){
console.log("x:"+data)
if(data==0){
if(data!=0){
console.log("No FFMPEG FOUND :(")

@@ -122,2 +124,18 @@ self.emit("NoFFMPEG")

console.log("d:"+data)
// # -------------------------------------------------- # //
// TODO: find the ffmpeg path when the object is constructed instead of resolving it now.
// PATCH to actually find the ffmpeg executable
var ffmpegPath = data.toString("utf8").trim()
if(data.length > 0 && fs.existsSync(ffmpegPath)) {
var ffmpegPath = path.dirname(ffmpegPath) + path.sep
if(self.options.lib != ffmpegPath) {
self.options.lib = ffmpegPath
console.log("FFMPEG path set to " + ffmpegPath)
}
} else {
return; // We assume that which will return != 0 so on('close') will handle the NoFFMPEG case.
}
// # -------------------------------------------------- # //
if(data.length >0){

@@ -124,0 +142,0 @@ self.openThread = spawn(

{
"name": "airplay-js",
"description": "JS Native Apple AirPlay client library for AppleTV",
"version": "0.2.11",
"version": "0.2.12",
"author": {

@@ -11,3 +11,2 @@ "name": "zfkun",

"dependencies": {
"asyncblock": "^2.1.23",
"mdns-js": "guerrerocarlos/node-mdns-js",

@@ -14,0 +13,0 @@ "plist-with-patches": "0.5.1"

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