Forum Discussion
milankysel
Jul 07, 2022Copper Contributor
Dynamic embed code for youtube
How do I embed the latest posted video from a YouTube page (dynamic code)? any help please?
milankysel
Copper Contributor
This I understand. But it's still one specific video. I'm looking for a dynamic embed code which automatically uses always last added video on out youtube page.
Noa-Arkenaar
Jul 07, 2022Copper Contributor
This is not specifically SharePoint related, but you can use the following embedded code and replace "YOUR_CHANNEL_NAME_HERE" with your channel.
<iframe width="600" height="340" src="https://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=YOUR_CHANNEL_NAME_HERE" frameborder="0" allowfullscreen></iframe>
- milankyselJul 07, 2022Copper ContributorIt's not working 😞 it says "This video is unavailable."
- Noa-ArkenaarJul 07, 2022Copper Contributor
milankysel could you share the code snippet you are using?
- milankyselJul 08, 2022Copper Contributor
Noa-Arkenaar you mean this?
<iframe width="600" height="340" src="https://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=UC9t-1z5eKCl43eSuAarJRkw" frameborder="0" allowfullscreen></iframe>