Comparing version 0.0.2 to 0.0.3
@@ -75,18 +75,18 @@ // 2013, Muaz Khan - www.MuazKhan.com | ||
//child_process = require('child_process'); | ||
var command = "ffmpeg -i " + videoFile + " -i " + audioFile + " -map 0:0 -map 1:0 " + mergedFile; | ||
var child = exec(cmd, function(error, stdout, stderr){ | ||
var child = exec(command, function(error, stdout, stderr){ | ||
stdout ? util.print('stdout: ' + stdout) : null; | ||
stderr ? util.print('stderr: ' + stderr) : null; | ||
if (error) { | ||
console.log('exec error: ' + error); | ||
response.statusCode = 404; | ||
response.end(); | ||
} else { | ||
response.statusCode = 200; | ||
@@ -99,3 +99,3 @@ response.writeHead(200, { 'Content-Type': 'application/json' }); | ||
fs.unlink(videoFile); | ||
// auto delete file after 1-minute | ||
@@ -105,7 +105,7 @@ setTimeout(function() { | ||
}, 60 * 1000); | ||
} | ||
}); | ||
} | ||
@@ -112,0 +112,0 @@ } |
{ | ||
"name": "recordrtc", | ||
"preferGlobal": true, | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -43,4 +43,4 @@ "name": "Muaz Khan", | ||
"homepage": "https://github.com/muaz-khan/WebRTC-Experiment", | ||
"_id": "recordrtc@0.0.2", | ||
"_id": "recordrtc@0.0.3", | ||
"_from": "recordrtc@" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102428
13
1275
4