Report this

What is the reason for this report?

Google get video fmt stream map

Posted on December 16, 2016

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.