Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive Video Player Start Time

I have embedded a Google Drive video file into my website and I want to set a start time for the video. Like embedding YouTube videos, is there a way of adding information at the end of the URL to set a start time? Can I do this with javascript or google api some how?

like image 826
TyCox94 Avatar asked Jul 20 '14 08:07

TyCox94


1 Answers

It should work just like youtube videos.

The start time html parameter: t={TIME}

{TIME} can be a couple of versions.

You can replace it with number of total seconds. For example if you wanted to start a 10 minutes and 51 seconds, you would put https://drive.google.com/file/d/videoid/view?t=651s since (10 * 60) + 51 = 651

It also support hours,minutes,seconds format as well

https://drive.google.com/file/d/videoid/view?t=10m51s

https://drive.google.com/file/d/videoid/view?t=2h10m51s

like image 136
Rob Yull Avatar answered Sep 30 '22 15:09

Rob Yull