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

106
Vistas
Mute/unmute iframe video from another domain

I've implemented an iframe inside my webpage, the iframe points to another domain to catch the video content.

Nothing fancy inside my webpage, the iframe is standard aswell:

<iframe id='frame' src='domain.com/stream/324/index.m3u8' width='100%' allow='autoplay; encrypted media' frameborder='0' allowfullscreen></iframe>

I would like to add buttons outside the iframe to mute or unmute the video, even though the presence of the player's controllers.

How can I achieve this?

almost 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Don't use the <iframe> tag for videos. Instead, use the HTML5 <video> tag. With a <video> tag you can set the muted attribute. You can rewrite your <iframe> like this:

<video id="video" controls width="100%" src="domain.com/stream/324/index.m3u8"></video>

You can then create a button and add an event listener to mute and unmute the <video> tag. Like this:

<button onclick="document.getElementById('video').muted = true">Mute</button>
<button onclick="document.getElementById('video').muted = false">Unmute</button>
almost 4 years ago · Santiago Trujillo 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