将YouTube视频嵌入自动播放功能并在特定时间开始播放视频 [英] Embedding YouTube video with Autoplay AND starting video at a particular time
问题描述
我想知道是否可以自动播放嵌入的YouTube视频,并且视频是否也可以从某个位置开始播放?
感谢您的帮助。
I was wondering if it is possible to autoplay an embedded YouTube video AND also have the video start at a certain point? Any help is appreciated.
推荐答案
您只需添加&
在嵌入脚本中放置另一个命令。 ?
启动第一个命令,&
添加另一个命令。 Start命令以秒为单位:1min10sec = 70secs。然后只需以autoplay = 1结束它即可自动开始播放。
You can just add the &
to place another command in the embed script. The ?
starts the first command, the &
adds another. The Start command is in seconds: 1min10sec=70secs. Then just top it off with an autoplay=1 to automatically start playing.
<iframe src="https://www.youtube.com/embed/acktYyOGG6w?start=29&autoplay=1" width="1" height="1" src="" frameborder="0" allowfullscreen></iframe>
我遇到了同样的问题我教堂的网站。宽度和高度仅是一个像素,因此视频在播放时不会显示。
当您查看播放列表链接时,会看到另一个示例。
I ran into the same issue for deploying music for my church's website. The width and height were only to make it a pixel in size so the video won't show while it plays.
You see another example when you look at the playlist links.
https://www.youtube.com/watch?v=of9C-8azVh8&index=4&list=PLBjhJqE72NDQPMNhB0peXyjDQNVxSext-
这篇关于将YouTube视频嵌入自动播放功能并在特定时间开始播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!