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

188
Visualizações
iframe Video in Modal Popup Replays Audio After Modal Close - Wordpress Site

I am using the Impreza Wordpress theme. To a page on my site, I added a popup modal element which contains an embedded iframe YouTube video. When I add ?autoplay=1 to the iframe src url, the video autoplays as expected when I open the modal popup, but when I close the modal popup, the audio replays even though the modal popup and video are no longer open/visible.

I'm trying to accomplish something like this: Youtube Video Still Playing When Bootstrap Modal Closes. My Javascript skills aren't strong enough to figure out how to apply the Bootstrap modal solution to this situation.

Here's the HTML I put in the popup modal element (Stack Overflow video for example purposes):

<div class="responsive-video">
  <iframe class="myEmbed" title="YouTube video player" src="https://www.youtube.com/embed/HJtJXMKpl2g?autoplay=1" allowfullscreen="allowfullscreen" width="1024" height="565" frameborder="0"></iframe></div>

Any suggestions would be greatly appreciated!

about 4 years ago · Juan Pablo Isaza
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