airplay-js
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -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" |
48064
2
1070
- Removedasyncblock@^2.1.23
- Removedasyncblock@2.2.12(transitive)
- Removedasyncblock-generators@2.2.12(transitive)
- Removedesprima@4.0.0(transitive)
- Removedfibers@2.0.0(transitive)