You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original TSDemuxer API used a callback parameter to emit extracted
Packets. This replaces that with NodeJS's built in Transform Stream
API.
https://nodejs.org/api/stream.html#stream_class_stream_transform
Really what's happening is that:
1) We hijacked `cb` to insteadp invoke `push`
2) `process` is now private and only invoked from _transform
3) `finalize` is now private and only invoked from _flush
Issue #7
Task
Description
As discussed in #6 (comment), the MpegTsDemuxer is acting as a Transform stream without actually implementing the Transform stream API.
If we implement it as a Transform then everybody can benefit from node pipelines and stream management in general.
The text was updated successfully, but these errors were encountered: