Youtube 嵌入视频开始和结束问题

2022-01-19 00:00:00 youtube youtube-api iframe html

Youtube 有一项功能,您可以嵌入视频并用它标记开始和结束时间.它在搜索栏上显示一个帧,视频从开始标记开始到结束标记结束.

Youtube has a feature when you can embed a video and mark start and end time with it. It displays a frame on the seek bar and video starts from the starting mark and ends at the ending mark.

它在几周前停止工作.

https://www.youtube.com/embed/h_8smKNoAAw?start=2285&end=2515

这是一个我确信以前可以使用的网址.

Here is a url that I am sure was working before.

现在它从 url 中标记的点开始,但它没有在结束标记处结束.

Now it starts from point marked in the url, but it does not end at the ending mark.

推荐答案

对我来说效果很好.

我在您提供的 URL 中添加了 autoplay=1 参数,视频实际上在指定的位置开始和结束.

I added the autoplay=1 parameter in the URL you provided and the video actually starts and ends at the indicated positions.

这是修改后的网址:

https://www.youtube.com/embed/h_8smKNoAAw?start=2285&end=2515&autoplay=1

相关文章