|
@@ -8,7 +8,7 @@ var fs = require('fs'),
|
|
|
util = require('util');
|
|
util = require('util');
|
|
|
|
|
|
|
|
var mime = require('mime-types'),
|
|
var mime = require('mime-types'),
|
|
|
- streamprocess = require('streamprocess'),
|
|
|
|
|
|
|
+ StreamEach = require('stream-each'),
|
|
|
oncemore = require('oncemore'),
|
|
oncemore = require('oncemore'),
|
|
|
m3u8parse = require('m3u8parse'),
|
|
m3u8parse = require('m3u8parse'),
|
|
|
mkdirp = require('mkdirp'),
|
|
mkdirp = require('mkdirp'),
|
|
@@ -45,7 +45,7 @@ HlsStreamRecorder.prototype.start = function() {
|
|
|
if (!fs.existsSync(this.dst))
|
|
if (!fs.existsSync(this.dst))
|
|
|
mkdirp.sync(this.dst);
|
|
mkdirp.sync(this.dst);
|
|
|
|
|
|
|
|
- streamprocess(this.reader, this.process.bind(this));
|
|
|
|
|
|
|
+ StreamEach(this.reader, this.process.bind(this));
|
|
|
|
|
|
|
|
this.updateIndex(this.reader.index);
|
|
this.updateIndex(this.reader.index);
|
|
|
this.reader.on('index', this.updateIndex.bind(this));
|
|
this.reader.on('index', this.updateIndex.bind(this));
|