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

Video streaming #33

Open
2color opened this issue Jan 16, 2023 · 1 comment
Open

Video streaming #33

2color opened this issue Jan 16, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@2color
Copy link
Collaborator

2color commented Jan 16, 2023

Background

As we discussed during our call, it would be nice to stream a video incrementally rather than wait for the full video to download.

Existing examples and knowledge

HLS

One of the advantages of HLS over some other streaming technologies is that the content can be hosted on a plain old web server without any special server-side support. The way this works is that the original content (the stream or video/audio file) is split up into small MPEG2-TS segments before being uploaded to the server. The segments are then fetched by the HLS player on the fly (using regular HTTP GET requests) and get spliced together to a continuous stream.

Example: https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-video-streaming

Using videostream

Another approach that works with mp4 video files is using the videostream library.

Example: https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-readablestream

@TheDiscordian TheDiscordian added enhancement New feature or request help wanted Extra attention is needed labels Jan 31, 2023
@TheDiscordian
Copy link
Owner

videostream looks very cool, I'm a bit blown away by how easy it looks to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants