为了账号安全,请及时绑定邮箱和手机立即绑定

我们可以更改返回的 oembed YouTube iframe 宽度和高度吗?

我们可以更改返回的 oembed YouTube iframe 宽度和高度吗?

子衿沉夜 2024-01-18 09:51:45
现在 YouTube 返回分钟。宽度和高度。如何调整 GET 调用来更改返回html?例如:"html": "<iframe width=\"400\" height=\"260\" src=\"https://www.youtube.com/embed/kFz9afj8lu0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"当前 https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=kFz9afj8lu0{"title": "Can You Actually Game in 8K? (RTX 3090 Gameplay!)","author_name": "Marques Brownlee","author_url": "https://www.youtube.com/c/mkbhd","type": "video","height": 113,"width": 200,"version": "1.0","provider_name": "YouTube","provider_url": "https://www.youtube.com/","thumbnail_height": 360,"thumbnail_width": 480,"thumbnail_url": "https://i.ytimg.com/vi/kFz9afj8lu0/hqdefault.jpg","html": "<iframe width=\"200\" height=\"113\" src=\"https://www.youtube.com/embed/kFz9afj8lu0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"}
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 129 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信