-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs: Add browser example for streaming files #1223
docs: Add browser example for streaming files #1223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAAWT 🔥 Thanks @achingbrain :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to list it https://github.com/ipfs/js-ipfs/tree/master/examples#tutorials
@achingbrain while at it, wanna try creating an example that shows how to use https://github.com/jhiesey/videostream to create a video stream from js-ipfs? |
Sure, maybe on a different PR though 😉 |
@achingbrain yeah, absolutely. Just add this example to the index as suggested above and it is good to merge :) |
Its something like that videostream example that we are looking for. What's missing is how to create a function such as in the https://github.com/jhiesey/videostream Readme that takes an opts structure with start and end, and retrieves those bytes from a IPFS stream. |
3b51fae
to
bf277a0
Compare
Done! |
thank you :) |
Addresses #1053 by adding an example of how to use the streaming interface to add files sequentially and obtain the hash of the directory containing the files.