ParseStream

ParseStream

Implements the Stream.Writable API to handle chunk of HLS TS data to be parsed

Constructor

new ParseStream()

Source:
Example
request.get("http://example.com/seg10.ts")
.pipe(hlsTs.parse())  // parse() creates a ParseStream object
.on("finish", function() {
  const avcPackets = hlsTs.getPacketsByProgramType("avc");
});

Extends

  • Writable