TL:DR How would I go about to replicate a script like this http://api.getlinkdrive.com/ for Google Drive videos.
Google video playback request links are bound by ip and token. I can get those links by using drive.google.com/get_video_info?docid=FILEID But needs to be executed on the clients browser if you get the fmt stream map from the Digital Ocean droplet you get links personalised to the droplets ip.
If you get it from the clients ip you get a link for the users ip, which is what I want as result.
But unfortunately CrossDomain ajax requests won’t work for that.
Some API I have seen does what I want to make: http://api.getlinkdrive.com/
You enter a shared link and get the redirector.googlevideo.com/playback? link for each resolution.
I have seen from the link that they registered themselves as an Google drive app. Would that have anything to do with it?
Can I use the Google drive SDK for it? I have looked into the google drive SDK but a GET request to the api on FULL doesnt return any video related data except length and resolution.
-Thanks for helping
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
For anyone reading this:. Google doesn’t want people to use Google Drive’s publicly shared file feature as a free video CDN. If you find a hack that works for a while, Google will patch it and you will have to do more work finding another workaround. Think about how much time you’ll spend finding workarounds. Think about how valuable your time is!
If you want to cheaply host video, try a federated peer-to-peer solution like https://joinpeertube.org/ There’s a good community of users that can help you on r/peertube https://np.reddit.com/r/PeerTube
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.