問題描述
我已在我的網站中嵌入了一個 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 視頻播放器開始時間的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!