如何自定义 YouTube 视频的结束时间? [英] How to customize an end time for a YouTube video?

查看:30
本文介绍了如何自定义 YouTube 视频的结束时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何为嵌入的 YouTube 视频指定自定义结束时间.我知道我可以通过添加 &start=30 来自定义开始时间,但我没有看到任何与结束时间相关的内容.

I'm trying to figure out how I can specify a custom end time for an embedded YouTube video. I know that I can customize the start time by adding &start=30, but I haven't seen anything relating to the end time.

我需要能够为我正在构建的网络应用程序执行此操作,因此如果 YouTube 没有提供任何方法,我又如何能够完成此操作?

I need to be able to do this for a web app I'm building, so if there is no way provided by YouTube, how might I be able to accomplish this anyway?

我浏览了文档但无济于事.谢谢!

I've skimmed over the documentation to no avail. Thanks!

推荐答案

我刚刚发现以下有效:

https://www.youtube.com/embed/[video_id]?start=[start_at_second]&end=[end_at_second]

注意:时间必须是整数秒(例如 119,而不是 1m59s).

Note: the time must be an integer number of seconds (e.g. 119, not 1m59s).

这篇关于如何自定义 YouTube 视频的结束时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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