Google 云端硬盘视频播放器开始时间 [英] Google Drive Video Player Start Time

查看:31
本文介绍了Google 云端硬盘视频播放器开始时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 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

它还支持小时、分钟、秒格式

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

这篇关于Google 云端硬盘视频播放器开始时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆