Add missing mode parameter to the stream object. (and correct call to it)
This commit is contained in:
parent
422d0827f9
commit
62a08e14bb
@ -89,6 +89,7 @@ function downloadVideo(config: IConfig,
|
||||
player.video.file,
|
||||
page.swf,
|
||||
filePath, path.extname(player.video.file),
|
||||
player.video.mode,
|
||||
done);
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import os = require('os');
|
||||
/**
|
||||
* Streams the video to disk.
|
||||
*/
|
||||
export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath: string, fileExt: string, done: (err: Error) => void) {
|
||||
export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath: string, fileExt: string, mode: string, done: (err: Error) => void) {
|
||||
if (mode == "RTMP")
|
||||
{
|
||||
childProcess.exec(command("rtmpdump") + ' ' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user