paratii-player
paratii-player copied to clipboard
API for uploading videos
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