- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
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/
我有一个具有可变数量子元素的固定大小的 div。我不知道 children 的大小。目标是缩小它们以适合父级。 例子: .parent { width: 100px; height: 100p
我是一名优秀的程序员,十分优秀!