Is it possible to use IPFS for LIVE video streaming?

I’m interested in few use cases. In all of them we are talking about real time video stream.

  1. one person streams via his web cam, another one watches. Both have real static IPs.
  2. one person streams via his web cam, another one watches. One or both of them don’t have real static IPs.
  3. one person streams via his web cam, multiple watch. All have real static IPs.
  4. one person streams via his web cam, multiple watch. Some of them don’t have real static IPs.

Which cases are possible?

All cases should be possible, unless I miss something. Static/Dynamic IP doesn’t matter, as long as you can reach the peer (directly or via relay).

I actually published a example of a many-to-many webcam live streaming, you can see it here: https://github.com/victorbjelkholm/resort

Demo: https://ipfs.io/ipfs/QmaK1BRzvYU7F2taQ5qAazKKDGqSgZ9vu2vSYyw1L852ws/

2 Likes

Thanks.
And what is the case if there is more than 1 user behind 1 IP?
You know how some ISPs share IPs between users.
Can it be done in that case without relay?

edit:
https://ipfs.io/ipfs/QmaK1BRzvYU7F2taQ5qAazKKDGqSgZ9vu2vSYyw1L852ws/

doesn’t show any video, just green page with the text explanation

And what is the case if there is more than 1 user behind 1 IP?

It works fine as every peer has their own ID.

doesn’t show any video, just green page with the text explanation

What browser are you using? You’ll need to use Firefox or Chrome, and then accept the request for accessing your webcam for it to show up on the page.

1 Like

Thanks for the info, that helps a lot!

I’m using latest firefox but since I’m on desktop that has no cam, I suppose that explains it. Will test more later on another device.

hello, what will happen after the live.
Do the data still be stored in the file systems(IPFS)?

I had tried to run this code but got some error. Error is shown below

{ Error: ENOENT: no such file or directory, open ‘build/index.js’
errno: -2,
code: ‘ENOENT’,
syscall: ‘open’,
path: ‘build/index.js’ }

Help me to resolve this issue.
System: Ubuntu 18
node version - v8.12.0
npm version -6.4.1

@PinkBerry and anyone interested in IPFS Live Streaming: there is a great case study with open docs and code:

Yurko, Elon and Benedict from Toronto Mesh set up live streaming for Our Networks 2018. Yurko gave a presentation of the process during one of IPFS Weekly Calls.

See the recording (starts ~06:50) or read meeting notes linked below.

Refs:

1 Like