5 Answers5

3

You can use the following link to embed videos and images. Just give a try.

https://drive.google.com/uc?id={fileID}
Chandan Reddy
  • 499
  • 4
  • 23
1

If your video files are above 100mb then you can use this :

https://www.googleapis.com/drive/v3/files/{file id}?alt=media&key={drive api key}

Or you can use these tool to stream video directly :

https://speedynet.vercel.app/embed.html

https://dashplay.netlify.app/embed.html

You can get your drive api key here :

https://console.cloud.google.com/apis/dashboard
gaminglnk
  • 11
  • 2
0

Try this

  https://drive.google.com/uc?export=download&id=<YOUR-ID-HERE>

Beware this.

If you call with Method GET - You get a file

If you call with Method POST - You get a JSON return with something like this

{
"disposition": "SCAN_CLEAN",
"downloadUrl": "https://doc-0o-2g-docs.googleusercontent.com/docs/securescxxxx/xxxxx/xxxxx?e=download",
"fileName": "VID_20170508_085207.mp4",
"scanResult": "OK",
"sizeBytes": 31851745
}
0

Use https://docs.google.com/e/yourdomain.com/get_video_info?docid={doc_id}.
Change yourdomain.com to your domain gsuite.

Fetch the api using the url with your access_token. If not using access token maybe you will get 403 forbidden access.

Nunser
  • 4,512
  • 8
  • 25
  • 37
shodiqul muzaki
  • 110
  • 3
  • 7
-1

You can use the following link to get the video stream from google drive:

http://api.getlinkdrive.com/getlink?url={google_drive_url}

pbn
  • 65
  • 1
  • 4