Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for uploading videos #354

Open
6 tasks
jellegerbrandy opened this issue Nov 30, 2017 · 0 comments
Open
6 tasks

API for uploading videos #354

jellegerbrandy opened this issue Nov 30, 2017 · 0 comments
Assignees

Comments

@jellegerbrandy
Copy link
Contributor

jellegerbrandy commented Nov 30, 2017

A call to the API will tipically look like this:

https://paratii.video/rip?url=http://youtu.be/videoId&account=0x123455&signature=0x1234..

where the signature is a signed hash of the given paraemeters

What the call does is:

  • check the correcntess of the hash
  • make an estimate of the costs and check the allowance of the funds [can be skipped in 1st iteration]
  • download the vid from youtube
  • transcode
  • register the video on the blockchain
  • return a JSON repsonse with some data (like its hash)

In a second iteration, we'd want to decentralized the YT download: a client does the download, and sends the video file. For that, we'd replace the rip call with a transcode call, that works exactly as above, except that he vid is not taken from yt but from the vid provided with the request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants