gpt4 book ai didi

html - YouTube 缩略图破坏了 maxres 使用

转载 作者:太空宇宙 更新时间:2023-11-04 00:10:07 26 4
gpt4 key购买 nike

youtube 是否不允许您从具有最高质量图像的 channel /播放列表中提取缩略图?

目前,我正在使用 Nodejs/angular-cli 从 channel ID 中提取 yt 缩略图,但是当我编辑此文件以显示 maxresdefaults 时,它会破坏功能。

改变

<div class="col-md-3">
<img [src]="video.thumbnails.high.url" height="auto" width="auto" />
<h4>hqdefault</h4>

<div class="col-md-3">
<img [src]="video.thumbnails.maxres.url" height="auto" width="auto" />
<h4>maxresdef</h4>

— 不起作用,有什么建议/清晰度吗?

所以我不得不想象 youtube 不允许从 channel ID 缩略图中提取 Maxres?

最佳答案

Resources of the same type may still have different thumbnail image sizes for certain images depending on the resolution of the original image or content uploaded to YouTube. For example, an HD video may support higher resolution thumbnails than non-HD videos.

还有

maxres - object - The highest resolution version of the thumbnail image. This image size is available for some videos and other resources that refer to videos, like playlist items or search results. This image is 1280px wide and 720px tall.

来源:https://developers.google.com/youtube/v3/docs/thumbnails

简而言之, channel 不明确支持 maxres 图像。

关于html - YouTube 缩略图破坏了 maxres 使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50181368/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com