Charlie's profile picture

Published by

published

Category: Web, HTML, Tech

Autoplaying, looping video embed

Made an autoplay looping video embed!! Had a bit of trouble, but a friend mentioned nocookie so I shoved that in there

<iframe width="24" height="18" src="https://www.youtube-nocookie.com/embed/DlGdkH--tBI?playlist=DlGdkH--tBI&autoplay=1&iv_load_policy=3&loop=1&modestbranding=1&start=&controls=0&autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

grab the nocookie link to your video, and slap on &controls=0&autoplay=1 at the end

To loop a video it needs to be in a playlist, and the nocookie link does that automatically
The embed I made is super small so it fits with the rest of my profile and is out of the way, but obviously you can fuck around with that

If anyone found a better way of doing this, let me know!! Im still learning lmao


0 Kudos

Comments

Displaying 1 of 1 comments ( View all | Add Comment )

vani

vani's profile picture

ahh ! thx sm ! i ended up goin w/ something else but i'll try this next time C:


Report Comment