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

139
Vistas
browser won't remember user interaction when going between local websites

I am making a website with a video that I want to autoplay with sound. On most websites, if you click a link to another part of the site it remembers the user interaction and allows autoplay. However, right now it is local (aka the url is C:\\ ...), so going between 2 different .html files makes the browser reset its user interaction check.

Is there any way to fix this without placing my entire site online?

minimum reproducible example:

link.html:

<!doctype html>
<html>
<body>
<a href="file:///C:/ ... /mainSite.html">Click to go to other site</a>
</body>
</html>

mainSite.html:

<!doctype html>
<html>
<audio id="player" autoplay controls>
    <source src="https://www.appsloveworld.com/wp-content/uploads/2018/10/640.mp4" type="video/mp4">
</audio>
</body>
</html>

NOTE: it should work like so:

User goes to link.html, clicks it and gets redirected to mainSite.html. The browser remembers user clicking link in link.html, and since both sites are from the same source, (my pc), the audio autoplays.

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