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?
Noa-Arkenaar
Jul 07, 2022Copper Contributor
milankysel could you share the code snippet you are using?
milankysel
Jul 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>
- Noa-ArkenaarJul 08, 2022Copper Contributor
milankysel This has to do with YouTube and you need to find help with YouTube support for this. I think it has to do something with the copyright or embed settings.
For example, the following is working:
<iframe width="600" height="340" src="https://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=MrSuicideSheep" frameborder="0" allowfullscreen=""></iframe>- milankyselJul 08, 2022Copper Contributor
Noa-Arkenaar thank you 🙂