从iFrame嵌入API获取YouTube视频信息 [英] Get YouTube video info from iFrame embed API

查看:167
本文介绍了从iFrame嵌入API获取YouTube视频信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用YouTube iFrame API嵌入视频并创建一个简单的自定义播放器。

I'm using the YouTube iFrame API to embed videos and create a simple custom player.

我正在寻找视频标题/描述/等。从API无需另外打电话给YouTube获取信息。我无法找到任何相关信息 - 任何想法,或者我是否因为获取视频信息而无法拨打电话?我想也许这些信息可以在 YT.Player()返回的播放器对象中找到。

I'm looking to get the video title/description/etc. from the API without having to do another call to YouTube to get the information. I am unable to find any relevant information - any thoughts, or am I stuck making an extra call to get the video info? I thought perhaps the information was available in the player object returned by YT.Player().

谢谢!

推荐答案

看来这是不可能的。我花了很多时间手动查看播放器对象,找不到与标题或描述有关的任何内容。

It seems that this is not possible. I spent some extensive time manually looking through the player object and could not find anything remotely related to title or description.

这篇关于从iFrame嵌入API获取YouTube视频信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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