Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Node.js Buffer and Stream API with Uint8Array and Web Streams API #1069

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

steabert
Copy link
Member

@steabert steabert commented Dec 5, 2024

Replace usage of Node.js Buffer and Stream API with Uint8Array and Web Streams API.
The latter are natively supported in the browser and Node.js.

Reason for migration:

  • browser compatibility packages for Node.js Buffer and Stream API are no longer maintained
  • Node.js supports Uint8Array and Web Streams API

TODO:

  • messages data field is Uint8Array
    • rtsp
    • sdp
    • mp4
  • components redesigned around Web Streams API
    • remove generic component.ts
    • ws-source
    • rtsp-parser
    • rtsp-session
    • depay (maybe single class with multiple parsers)
    • mp4
    • mse-sink

@steabert steabert force-pushed the next branch 2 times, most recently from 92f6b03 to ae57930 Compare December 5, 2024 09:12
@steabert steabert self-assigned this Dec 5, 2024
@steabert steabert force-pushed the next branch 3 times, most recently from 98e193e to 9c1671f Compare December 9, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant