Closed virtualfunction closed 11 years ago
FYI, I'm using Node 0.10.2, though I don't think this matters.
It seems to be (I think) because your code is passing/expecting a callback for the write action as the second parameter in your node icecast package, where as the Node and stream docs at https://github.com/isaacs/readable-stream#transform_transformchunk-encoding-callback suggest that this should be an encoding (and I assume the write method on the transform object/stream should be called instead)
Fixed, ya?
You'll have to excuse me if I'm doing things wrong, I've only started using node a few days and my background on the OGG container format isn't extensive.
I've been trying to get this working with Icecast meta data using your icecast npm package.
https://gist.github.com/virtualfunction/5ca3edfbc38b99e581fb
I'm writing to a file here, but the same error occurs if output is a stream stack HTTP response.
However I seem to get an error:
Now if I omit the use of node icecast, and do ogg_encoder.pipe(output) the output works, but obviously it has no Icecast meta data embedded.