diff options
author | Joseph Dykstra <josephdykstra@gmail.com> | 2015-01-16 19:22:21 +0300 |
---|---|---|
committer | Joseph Dykstra <josephdykstra@gmail.com> | 2015-01-16 19:22:21 +0300 |
commit | 366b8912a24f5e448c5dcf67854604e988c3df96 (patch) | |
tree | f0e5bf4ae63807ad52e68d76db88bff9d4af325e /lib/file-stream.js | |
parent | d880b81ff83a860594a5310dd0a05fdb1ca7f876 (diff) |
Renamed instances of 'video' to 'media'
Diffstat (limited to 'lib/file-stream.js')
-rw-r--r-- | lib/file-stream.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js index 2084ba1..3b2cf23 100644 --- a/lib/file-stream.js +++ b/lib/file-stream.js @@ -4,7 +4,7 @@ var debug = require('debug')('webtorrent:file-stream') var inherits = require('inherits') var path = require('path') var stream = require('stream') -var VideoStream = require('./video-stream') +var MediaStream = require('./media-stream') inherits(FileStream, stream.Readable) @@ -108,8 +108,7 @@ FileStream.prototype.pipe = function (dst) { : self._extname === '.mp3' ? 'audio/mpeg' : undefined - // TODO: consider renaming VideoStream to MediaStream, since it supports audio as well. - return pipe.call(self, new VideoStream(dst, { type: type })) + return pipe.call(self, new MediaStream(dst, { type: type })) } else return pipe.call(self, dst) } |