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
4 Answers
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
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>
-
15
-
1At least this one produces an output. For some reason the javascript examples listed on this page and elsewhere don't output anything on my page.– TARKUSCommented Sep 23, 2014 at 11:47
-
7not working for me, perhaps something changed on youtube? in dev tools i'm seeing calls to youtube.com/… returning status 400.– mendelCommented Feb 15, 2017 at 15:55
-
4Where would be the channel name located?? The public channel name does not work. Commented Mar 18, 2018 at 10:41
-
1yes this will work but you need to edit the answer to use https not http. It now works after for me. Thanks– jamesCommented Mar 5, 2021 at 22:51
In order to embed your channel, all you need to do is copy then paste the following code in another web-page.
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=YourChannelName&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Make sure to replace the YourChannelName with your actual channel name.
For example: if your channel name were CaliChick94066 your channel embed code would be:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=CaliChick94066&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Please look at the following links:
You just have to name the URL to your channel name. Also you can play with the height and the border color and size. Hope it helps
-
thanks for that - I probably should have stated I am trying to get this displayed without the Google Gadgets bar at the bottom - I guess I may have to use the API to create a more customised player.– ZabsCommented Feb 9, 2012 at 10:43
-
2This approach is broken now. Gives GET google.com/uds/solutions/videoshow/videoshow.css 404 (Not Found) ifr:411 GET youtube.com/… 404 (Not Found) Commented Feb 19, 2014 at 20:47
Seems like the accepted answer does not work anymore. I found the correct method from another post: https://stackoverflow.com/a/46811403/6368026
Now you should use:
http://www.youtube.com/embed/videoseries?list=USERID And the USERID is your youtube user id with 'UU' appended.
For example, if your user id is TlQ5niAIDsLdEHpQKQsupg then you should put UUTlQ5niAIDsLdEHpQKQsupg. If you only have the channel id (which you can find in your channel URL) then just replace the first two characters (UC) with UU.
So in the end you would have an URL like this:
http://www.youtube.com/embed/videoseries?list=UUTlQ5niAIDsLdEHpQKQsupg
-
1I don't know, why the accepted answer shouldn't work - in 2022 it is working. Allthoug i upvoted your answer, because it is also working...– bibermanCommented Mar 17, 2022 at 15:01
-
this also, appears to not be working in 2022 along with the accepted answer.– thus__Commented Nov 22, 2022 at 21:15
-
I quickly did this for anyone else coming onto this page:
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"
type="application/x-shockwave-flash"
allowfullscreen="true"
allowscriptaccess="always"
width="425" height="344">
</embed>
</object>
-
1The question is about embedding the channel, not a single video. Commented Nov 13, 2013 at 22:48
-