wordpress 如何将 YouTube 频道嵌入网站?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6809896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to embed youtube channel into site?
提问by js111
What is the best way to embed an entire youtube channel into a site? Looks like the "custom player" generator was discontinued recently..
将整个 YouTube 频道嵌入网站的最佳方法是什么?看起来“自定义播放器”生成器最近停产了..
Im looking for more than just a video with a scroll bar. I want to replicate the experience of the actual channel as much as possible (see screenshot for example).
我正在寻找的不仅仅是带有滚动条的视频。我想尽可能地复制实际频道的体验(例如,请参见屏幕截图)。
Anyone have any ideas on how to accomplish this?
任何人都对如何实现这一目标有任何想法?
Note: I have a wordpress site and have not seen any plugins either??
注意:我有一个 wordpress 网站,也没有看到任何插件??
采纳答案by mjhm
It seems that Google is steering the direction of Cosmic Panda. They're probably a ways off from having much in the way of developer tools.
似乎谷歌正在引导Cosmic Panda的方向。它们可能与开发人员工具的方式相去甚远。
Also check out Kaltura's open source work. This would give you a good head start over rolling your own, but it will still probably require a lot of programming if you're wanting something very specific.
另请查看Kaltura 的开源工作。这会给你一个良好的开端,而不是自己动手,但如果你想要一些非常具体的东西,它可能仍然需要大量的编程。
回答by Simone Gianni
I had a similar problem. I didn't need to display all that information about the channel (like favorites, info etc..), but was in search of a channel player, which worked on iOS Safari, like iPad and iPhone.
我有一个类似的问题。我不需要显示有关频道的所有信息(例如收藏夹、信息等),而是在寻找可在 iOS Safari 上运行的频道播放器,例如 iPad 和 iPhone。
I ended up writing my own: http://code.google.com/p/jq-youtube-player/. It is based on jQuery, and requires only a .js and a .css file.
我最终编写了自己的:http: //code.google.com/p/jq-youtube-player/。它基于 jQuery,只需要一个 .js 和一个 .css 文件。
Feel free to use it, improve it, etc...
随意使用它,改进它,等等......
回答by Geoff Hudson
I found this player at jsfiddle
我在 jsfiddle 找到了这个播放器
And then updated it to fit a widescreen player at http://jsfiddle.net/Zbbbv/1068/
然后在http://jsfiddle.net/Zbbbv/1068/更新它以适合宽屏播放器
回答by Kaspars
Get the playlist IDfrom the "Play All" button in the new channel page, for example, see www.youtube.com/user/google right after the featured video.
从新频道页面中的“全部播放”按钮获取播放列表 ID,例如,在精选视频后立即访问 www.youtube.com/user/google。
http://www.youtube.com/watch?v=qCtQ2UiRkZw&list=UUK8sQmJBp8GCxrOtXWBpyEA
http://www.youtube.com/watch?v=qCtQ2UiRkZw&list=UUK8sQmJBp8GCxrOtXWBpyEA
Where UUK8sQmJBp8GCxrOtXWBpyEAis the playlist ID.
其中UUK8sQmJBp8GCxrOtXWBpyEA是播放列表 ID。
and use it to create the URL for the iframe:
并使用它来创建 iframe 的 URL:
Source: http://konstruktors.com/blog/web-design/3384-embed-youtube-channel-playlist/
来源:http: //konstruktors.com/blog/web-design/3384-embed-youtube-channel-playlist/
Full list of Embed parameters: https://developers.google.com/youtube/player_parameters
嵌入参数的完整列表:https: //developers.google.com/youtube/player_parameters
回答by Purag
There's an excellent and short tutorial on how to do this here: http://www.google.com/support/forum/p/youtube/thread?tid=4c414f514bc3f690&hl=en
这里有一个关于如何做到这一点的优秀而简短的教程:http: //www.google.com/support/forum/p/youtube/thread?tid=4c414f514bc3f690& hl=en
Essentially, use this script:
基本上,使用这个脚本:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=[YOUR-CHANNEL-NAME]&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Replace [YOUR-CHANNEL-NAME]
with your channel name and it should work.
替换[YOUR-CHANNEL-NAME]
为您的频道名称,它应该可以工作。