问题标签 [youtube-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
508 浏览

embed - 更改播放视频

我正在尝试以下代码http://code.google.com/apis/ajax/playground/#change_the_playing_video

从游乐场页面运行时效果很好。但是,如果我使用作为示例提供的源代码创建一个新的本地文件,则会收到以下错误:

ytplayer 未定义

在第 40 行:

看起来由于某种原因,我无法访问示例所需的 javascript 的某些部分。

只有我吗?或者示例代码不在操场页面之外运行?

0 投票
3 回答
1342 浏览

api - 使用 YouTube API 的私人观众

有没有人能够使用 API 设置谁可以在 YouTube 上观看私人视频?

0 投票
1 回答
333 浏览

actionscript-3 - 将 fla 发布到 youtube

我可以知道是否可以以编程方式将 fla 文件发布到 youtube 上?能详细说明一下吗?

0 投票
2 回答
4210 浏览

c# - YouTube API 评论供稿

我正在尝试使用 YouTube API for .NET 从视频条目中获取评论源。我正在使用 WPF 和 C# 编写一个程序,但我似乎一辈子都无法弄清楚如何检索这个提要。

我尝试查看YouTube API Developer's Guide,但它似乎缺少有关评论供稿的一些信息(靠近页面底部)。

0 投票
1 回答
1658 浏览

vb.net - VB.NET - 从表单加载事件导航时浏览器冻结

我正在尝试使用 Visual Studio 2008 和一个非常简单的仅包含 WebBrowser 的 Visual Basic 项目加载 YouTube 页面。我想在表单加载时加载页面:

每隔一段时间(每 3-5 次出现一次,但会有所不同),表格只显示一个空白的白色框。

有人可以帮我理解为什么会发生这种情况。

编辑:这种“冻结”发生在任何页面上,例如http://www.google.com。我的 WebBrowser 控件是否损坏?只有当我将导航代码放在表单加载事件中时才会发生,嗯,很奇怪。

0 投票
3 回答
384 浏览

youtube-api - 录制到 Youtube

是否可以将视频直接录制到 Youtube?假设我有一个网站,我可以有一个录制功能并使用某种 Youtube API 将最终视频发布到 Youtube 上吗?

找到了上传 API,但没有找到流式上传。

谢谢你,三通

0 投票
4 回答
6434 浏览

youtube - Programmatically determine whether a Youtube video has been taken down

I'm getting most of the music on Rap Exegesis from YouTube (in the form of embedded players). Unfortunately, there's always the risk that one of the videos I'm using will be taken down (due to copyright issues or whatever), thereby breaking the corresponding page on my site.

Ideally I would have a cronjob that would check (nightly say) whether any videos had been removed and notify me. What's the best way to do this?

0 投票
3 回答
2262 浏览

actionscript-3 - youtube 无铬 as3 播放器

我正在玩弄新的 youtube as3 API,但被卡住了。这就是我得到的(通过查看他们的示例代码)。

http://pastie.org/656088

我真的不知道下一步是什么。我没有收到任何错误,也没有任何东西被追踪。我很确定我的事件没有正确实施。

更新:我按照 Amarghosh 的回答做了这个:

现在 onPlayerReady 和 onStateChange 事件触发,但我得到错误。跟踪 Object(e).Data 时出现此错误

ReferenceError: Error #1069: the property Data was not found for com.google.youtube.event.ExternalEvent and there is no standard value. (从瑞典语翻译)当更改为 Object(e.target).Data 时,它会跟踪“未定义”,而 Object(e.target) 会跟踪 [object SwfProxy]。

如果我尝试player.loadVideoById("uad17d5hR5s");我会收到此错误:

1061: Call to a possibly undefined method loadVideoById through a reference with static type flash.display:Sprite.

0 投票
1 回答
2919 浏览

actionscript-3 - Youtube as3 播放器 API 错误

我正在尝试让 youtube as3 无铬播放器工作。我遵循了youtube as3 API 示例,这就是我到目前为止所得到的:

onPlayerReady 和 onStateChange 事件触发,但我得到错误。跟踪 Object(e).Data 时出现此错误:

翻译自瑞典语)

当更改为Object(e.target).Data它时,会跟踪“未定义”并Object(e.target)跟踪“[object SwfProxy]”。

如果我尝试player.loadVideoById("uad17d5hR5s");我会收到此错误:

1061: Call to a possibly undefined method loadVideoById through a reference with static type flash.display:Sprite.

0 投票
1 回答
3044 浏览

ruby-on-rails - 如何从链接显示 YouTube 视频图标

在我的 Rails 应用程序中,我希望用户能够输入来自 YouTube 的视频链接。我希望能够显示该链接的 YouTube 图标。

我怎样才能做到这一点?

谢谢,