YouTube 嵌入视频:设置不同的缩略图 [英] YouTube embedded video: set different thumbnail

查看:39
本文介绍了YouTube 嵌入视频:设置不同的缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 YouTube 嵌入一个不是我的视频(所以我无法在 YouTube 上更改它).视频的缩略图不代表视频(我指的是嵌入视频时显示的初始静止图像,在用户播放之前显示).

I want to embed a video from YouTube that is not mine (so I can not change it at YouTube). The video has a thumbnail that is not representative for the video (I refer to the initial still that is shown when you embed a video, shown before the user plays it).

有没有办法设置静止的时间,例如我尝试传递 ?s=XXX 但这不起作用.还是 YouTube 自带的另一种方式?

Is there a way to set the time of the still, for instance I tried passing ?s=XXX but this does not work. Or another way that comes natively with YouTube?

推荐答案

没有.大多数 YouTube 视频只有一个预先生成的海报"缩略图 (480x360).它们通常还有其他几个分辨率较低的缩略图 (120x90).因此,即使有一个嵌入参数来使用备用海报图像(没有),其结果也是不可接受的.

No. Most YouTube videos only have one pre-generated "poster" thumbnail (480x360). They usually have several other lower resolution thumbnails (120x90). So even if there were an embedding parameter to use an alternate poster image (which there isn't), it's result wouldn't be acceptable.

理论上您可以使用播放器 API 将视频搜索到您想要的任何位置,但这对于小结果来说将是一个主要的黑客.

You can theoretically use the Player API to seek the video to whatever location you want, but this would be a major hack for a minor result.

这篇关于YouTube 嵌入视频:设置不同的缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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