« Web, HTML, Tech Forum

video/music autoplay won't work

hi, i really want to have a song that autoplays on my profile but nothing that i try seems to work. which is strange, because back in december it did and it also works on the css preview website that i use. just not on spacehey itself.

it does show the video but you have to actually click on it so it starts playing. 

these codes dont seem to work for me, though i dont even know if there are others:

<iframe width="0" height="0" src="https://www.youtube.com/embed/xxxxx?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

<iframe width="0" height="0" src="https://www.youtube.com/embed/eXjhmwueQQM//?&;amp;;autoplay=1&;loop=1&;controls=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy"> </iframe>

i'm using google chrome.


Report Topic

2 Replies

Sort Replies:

Reply by EngiQu33ring

posted
updated

The "width" and "height" attributes are set to 0. The players are there, just unable to be seen. try using width="560" height="315"


Permalink Report Reply

Reply by PrintBot_XJ71

posted

I can't get it to work either

<iframe width="0" height="0" src="https://www.youtube.com/embed/KpvE1_eX4Go//?&;amp;;autoplay=1&;loop=1&;controls=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy">

</iframe>

Using that still nothing 


Permalink Report Reply