如何将YouTube频道嵌入网页 [英] How to embed a YouTube channel into a webpage

查看:138
本文介绍了如何将YouTube频道嵌入网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以建议我如何将youtube频道嵌入网页中-我正在从各个站点获取冲突信息,最好在可能的情况下使用自定义播放器?谢谢

Can anyone suggest how I embed a youtube channel into a webpage - I am getting conflicting information from various sites, ideally using the custom player if possible? thanks

推荐答案

YouTube支持一种易于使用的 iframe和url界面,用于将视频,播放列表和所有用户上传的视频嵌入到您的频道 https://developers.google.com/youtube/player_parameters

YouTube supports a fairly easy to use iframe and url interface to embed videos, playlists and all user uploads to your channel: https://developers.google.com/youtube/player_parameters

例如,此HTML将嵌入一​​个加载了播放列表的播放器,其中包含所有上传到您的频道的视频。将YOURCHANNELNAME替换为您的频道的实际名称:

For example this HTML will embed a player loaded with a playlist of all the videos uploaded to your channel. Replace YOURCHANNELNAME with the actual name of your channel:

<iframe src="http://www.youtube.com/embed/?listType=user_uploads&list=YOURCHANNELNAME" width="480" height="400"></iframe>

这篇关于如何将YouTube频道嵌入网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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