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

查看:36
本文介绍了如何将 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="https://www.youtube.com/embed/?listType=user_uploads&list=YOURCHANNELNAME" width="480" height="400"></iframe>

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

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