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

206
Vistas
How do i add a mp3 queue to my offline music static web app?

I am trying to add a queue for the music player on my website but I can't figure out how to do that. Can anyone help? I tryed a few things like having the code add a song in a list of songs to be played but can't get it to work. I am not so good at js and I'm just looking to see if anyone can help me. Thank you for your help and for reading this.

<script> "use strict"; 
    function byId(e){return document.getElementById(e);} window.addEventListener('load', onDocLoaded, false); 
    function onDocLoaded() { byId('mFileInput').addEventListener('change', onChosenFileChange, false); } 
    function onChosenFileChange(evt) { var fileType = this.files[0].type; if (fileType.indexOf('audio') != -1) loadFileObject(this.files[0], onSoundLoaded);  } 
    function loadFileObject(fileObj, loadedCallback) { var reader = new FileReader(); reader.onload = loadedCallback; reader.readAsDataURL( fileObj ); } 
    function onSoundLoaded(evt) { byId('sound').src = evt.target.result; byId('sound').play(); } 
</script>
<body> 
<h3>Select Song Below <!--<a href="JavaScript:newPopup('/player.html');"><img width="50px" height="50px" src="/assets/popout.png"></img></a>--></h3><br>
<input type="file" id="mFileInput" accept=".mp3,audio/*"><br> 
<audio id="sound" controls autoplay></audio>
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