tomeshnet / ipfs-live-streaming

Like HTTP live streaming, but with IPFS which is maybe better?
GNU General Public License v3.0
445 stars 76 forks source link

Streaming IPFS without gateway #110

Open benhylau opened 3 years ago

benhylau commented 3 years ago

I received a question on how viewers can watch the stream by fetching the video content directly using IPFS without the gateway, here are the steps for reference, that we should probably add to docs:

  1. Install IPFS Desktop: https://github.com/ipfs-shipyard/ipfs-desktop#ipfs-desktop
  2. Install IPFS Companion in Chrome: https://chrome.google.com/webstore/detail/ipfs-companion/nibjojkomfdiaoajekhjakgkdhaomnch/
  3. Go to the player page and stream

Now the ts chunks go through the local IPFS node at 127.0.0.1:8080

My understanding is that the Companion redirects IPFS traffic to a local IPFS instance if it’s running. The Desktop actually runs an instance, so the Companion has something to redirect to. You can verify that by opening inspector if your browser.

benhylau commented 3 years ago

Hey @toplevelnick thanks for trying this out. I also documented the results of our earlier conversation here. Feel free to add to it or document here any new findings / questions you have :)