Reputation: 21
so, I'm trying to embed "my" Youtube channel's latest video with iframe, using the code:
<iframe width="400" height="300" src="http://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=CHANNEL NAME" frameborder="0" allowfullscreen></iframe> .
while this works when i substitute CHANNEL NAME
with my channel's name (UCy3amHVg1fS_GBF8NSNlTAA
) it throws an error- however, when i substitute it for something like pewdiepie
it works completely fine.
Upvotes: 2
Views: 1006
Reputation: 790
It's only work with Channel Username, not with Channel ID. But you can make it works using JavaScript.
https://stackoverflow.com/a/45342740/11599531
Thanks :)
Upvotes: 2