-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Streaming video using js-ipfs in the Browser #965
Comments
Thanks for reporting this, @milankragujevic. We are investigating a possible regression in the WebSockets transport (either in js-ipfs or go-ipfs side //cc @lgierth). Meanwhile, check the work developed by @moshisushi on #128 and #947, he built a HLS Video Streamer using js-ipfs and his demo is fully working. Btw, this seems like an excellent test for js-ipfs, would you like to consider adding it to the batch of tests? Thank you! |
Hey @milankragujevic, check if https://github.com/ipfs/js-ipfs/tree/master/examples/browser-video-streaming is helpful to you. Thanks to @moshisushi for making it happen! |
btw @milankragujevic, your issue is because you are passing a Stream object to a thing that expects a buffer. You need to buffer up the stream. You can do that manually or just use |
The problem was that the code inside the function NEVER got called, so it doesn't even matter. |
@milankragujevic test with the latest master, that was due to infra changes that separated bootstrappers from gateways, it was fixed with #973 |
I downloaded milankragujevic's demo app, built the latest master and swapped it in, but it still doesn't seem to work. It would be very helpful to get an example made for the native html5 video player, and VideoJS once this works though. |
@OstlerDev Hi, I actually got it to work, you can see it here, thought it's not for distribution yet, that's why there's the warning in the footer. |
Very interesting and cool, I will be watching and waiting until there is a stable version to start testing with. Glad to see you got it working! |
So when realistically we can have working p2p live video streaming? |
@NinjaTurtle007 there is currently two threads in discuss.ipfs.io about live (or not) streaming.
Copy paste from those: Here is a tiny proof of concept for webcam streaming between multiple peers. It's inefficient since it sends the data directly to each peer, instead of sending a hash identifying the content then helping everyone pulling it down. But it works. Repository: https://github.com/victorbjelkholm/resort |
Let's convert this thread into a thread on https://github.com/ipfs/research-p2p-video and explore more ways to use IPFS to do p2p video :) |
For development, check the latest here -- #128 (comment). Closing this issue to avoid duplicated discussion in multiple points. |
Passing HTTPS multiaddr as a string to constructor did not work, protocol was ignored and unencrypted HTTP was used. This commit improves parsing of multiaddr constructor parameter and adds tests to ensure HTTPS is respected in all scenarios. It also updates iso-stream-http to v0.1.2 which includes fix for "https does not exist" License: MIT Signed-off-by: Marcin Rataj <[email protected]>
Type:
Question
Severity:
High / Critical (sometimes)
Description:
I cannot seem to get js-ipfs communicating with go-ipfs... I get cryptic errors, and I'm not quite sure is that even supposed to work. My code is this:
I built the latest 0.25.2 version with gulp and set it up but it doesn't seem to work, I usually get no response or this:
You can see it in action here at the link below.
I'm trying to stream Sintel.mp4 from WebTorrent, which I know for a fact should work, using the package videostream, as WebTorrent uses, and this usually works with HTTP-storage and a custom API for loading data via AJAX, or via vanilla WebTorrent, but doesn't seem to work with js-ipfs. I'm not sure whether the problem is with videostream or with js-ipfs, but I'm leaning more on the js-ipfs, because it seems to never even try to execute videostream.
Thanks!
Steps to reproduce the error:
https://milankragujevic.com/ipfs-proj/
The text was updated successfully, but these errors were encountered: