问题描述
我已在我的网站中嵌入了一个 Google Drive 视频文件,我想设置视频的开始时间.就像嵌入 YouTube 视频一样,有没有办法在 URL 末尾添加信息来设置开始时间?我可以用 javascript 或 google api 来做这件事吗?
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?
推荐答案
它应该像 youtube 视频一样工作.
It should work just like youtube videos.
开始时间html参数:t={TIME}
The start time html parameter: t={TIME}
{TIME} 可以是几个版本.
{TIME} can be a couple of versions.
您可以将其替换为总秒数.例如,如果您想开始 10 分 51 秒,您可以输入 https://drive.google.com/file/d/videoid/view?t=651s 因为 (10 * 60) + 51 = 651
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
还支持时分秒格式
https://drive.google.com/file/d/videoid/view?t=10m51s
https://drive.google.com/file/d/videoid/view?t=2h10m51s
这篇关于Google Drive 视频播放器开始时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!