HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.26k stars 2.26k forks source link

Zeronet Youtube mirror. #1842

Open sterling-archermedes opened 5 years ago

sterling-archermedes commented 5 years ago

The basic idea is for it to work as follows:

  1. The user tries to access a Youtube video through the zite. This can be done by informing the video url in a form or through a url parameter in the zite.
  2. The zite checks it's database to see if this video has been mirrored to IPFS already. If it has, serve the IPFS copy. If it hasn't, download the video from Youtube, play it to the user, save to IPFS and update the database.

I also intended to make a federated platform so each instance administrator could curate it's database. This would prevent spam.

The problem: How to fetch the video from within the browser? Will I run into a CORS error by just using XHR? I made some tests with node-ytdl-core and browserify but couldn't manage to use it from within the the zite, only within a normal site. And in the later case I had a CORS error.

Note: Everyone feel free to steal my idea. I don't want to do this but I might because I think it's important.

rllola commented 5 years ago

Partially related but I was also thinking of a PeerTube mirror on Zeronet.

Peertube : https://joinpeertube.org/en/

alex9099 commented 5 years ago

Though peertube does not "mirror" videos from youtube automatically, it has to be manually uploaded

purplesyringa commented 5 years ago

@HelloZeroNet Is there a way to distinguish network issues (e.g. site creation requests) from platform issues (e.g. PoW providers discussion)?

HelloZeroNet commented 5 years ago

@imachug It would be useful, but not sure what would be the best way to do that? Modify the issue template, create a new repository for that, or any other way?

alex9099 commented 5 years ago

Maybe a zite for voting on ideas?