hlx-terminator
A writable stream to write hls data to nowhere (/dev/null)
Features
- Being used with other
hlx
objects, it provides a functionality to terminate the stream pipeline.
Install
Usage
const createReadStream = ;const createLogger = ;const createTerminator = ; // terminator const src = ;const logger = ;const dest = ; // Print all playlists/segments to stdoutsrc;
API
The features are built on top of the Node's Writable Stream
.
createTerminator()
Creates a new WriteStream
object.
params
None
return value
An instance of WriteStream.
WriteStream
A subclass of stream.Writable that just ignore every hls-parser
objects.