Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
how to play and puase or autoplay the youtube video when video in view on the web page

I have rendered some youtube videos on the web so I want that a video in view that video will autoplay, and the user scroll up for another and the previous video should be stopped, and the new video autoplay. it should be like a tik tok video or Facebook video.

this is the HTML for the youtube video

 <div class="videohs">
                    <iframe id='player'src="https://www.youtube-nocookie.com/embed/GA7Fhq4_D2E?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
1 Respuestas
Responde la pregunta

0

you should add autoplay inside the src like this :

<!DOCTYPE html>
<html>
  <body>
    <iframe
      width="420"
      height="345"
      src="https://www.youtube-nocookie.com/embed/GA7Fhq4_D2E?autoplay=1&controls=0">
    </iframe>
  </body>
</html>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda