Browse Source

Normalize streaming implementation.

Roel van Uden 9 years ago
parent
commit
ed8f7c90f5
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/video/stream.js

+ 6 - 6
src/video/stream.js

@@ -4,19 +4,19 @@ var path = require('path');
 var os = require('os');
 
 /**
- * Streams the video to disk using rtmpdump.
+ * Streams the video to disk.
  * @param {string} rtmpUrl
- * @param {string} inputPath
+ * @param {string} rtmpInputPath
  * @param {string} swfUrl
- * @param {string} outputPath
+ * @param {string} filePath
  * @param {function(Error)} done
  */
-module.exports = function(rtmpUrl, inputPath, swfUrl, outputPath, done) {
+module.exports = function(rtmpUrl, rtmpInputPath, swfUrl, filePath, done) {
   childProcess.exec(_command() + ' ' +
     '-r "' + rtmpUrl + '" ' +
-    '-y "' + inputPath + '" ' +
+    '-y "' + rtmpInputPath + '" ' +
     '-W "' + swfUrl + '" ' +
-    '-o "' + outputPath + '"', {
+    '-o "' + filePath + '"', {
     maxBuffer: Infinity
   }, done);
 };