Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use webtorrent for distributed live video broadcasting

I want to use p2p webrtc for live video streaming through webtorrent.

https://github.com/feross/webtorrent

It can apparently stream video but can it take as input webcams and other sources?

How would you do that?

Thanks.

like image 506
Harry Avatar asked Jan 10 '15 04:01

Harry


People also ask

What is WebTorrent used for?

WebTorrent is a streaming torrent client for the web browser and the desktop. WebTorrent is written completely in JavaScript – the language of the web – and uses WebRTC for peer-to-peer transport whenever possible. No browser plugins, extensions, or installation is required to use WebTorrent in your browser.

Do I need a VPN for WebTorrent?

If you need to remain somewhat anonymous, then yes. But if you don't mind your IP being displayed to practically anyone, then it's not necessary. No, a VPN is not required to torrent files. The BitTorrent protocol will work regardless if you're using a VPN, proxy, or just your normal connection.

What is WebTorrent tracker?

A BitTorrent tracker is a web service which responds to requests from BitTorrent clients. The requests include metrics from clients that help the tracker keep overall statistics about the torrent. The response includes a peer list that helps the client participate in the torrent swarm.

What is WebTorrent Support Plugin?

WebTorrent allows direct browser-to-browser Bittorrent downloads by utilizing a WebSocket based tracker protocol and WebRTC peer connections.


1 Answers

Torrents are immutable, meaning that they can't change over time. You can built live streaming on top of torrents, though. You just need to pick a time interval (say 15 seconds), and create a torrent for each interval. The broadcaster should publish the .torrent files, or at least the magnet links to a central server somewhere that the clients can keep checking to get the latest content.

See https://github.com/feross/webtorrent/issues/448#issuecomment-159147568 for some discussion about how this might work.

As the creator of WebTorrent, I will say this. Live video streaming is out-of-scope for WebTorrent and should be built as a separate package on top of WebTorrent.

like image 188
Feross Avatar answered Oct 10 '22 22:10

Feross