Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
youtube iframe embeding it doesnt work when I want autoplay and loop to work but no control to show

I have the following code and need to autoplay my video in my website. but it doesnt autoplay, nor it loops the video with no control.

<div style="position: fixed; z-index: -99; width: 100%; height: 100%">
    <iframe width="100%" height="100%" src="https://www.youtube.com/embed/3fRxOjkik0g?autoplay=1&loop=1&showinfo=0&controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Autoplay is no longer allowed without user input - so I imagine that's why.

You can read more here:

https://developer.chrome.com/blog/autoplay/

It has to be muted if you want to autoplay.

A user has to interact with the div for it to start playing.

about 4 years ago · Juan Pablo Isaza Relatório

0

To autoplay the video you will need to mute your video as @polisen already mentioned. But I want to say that to loop a YouTube embed Video you will need a playlist to be mentioned in the Embed URL and in case you do not have a playlist you can use the Video Id as your Playlist Id.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda