Pregunta

There is what i've done

echo'<embed src="valentine.mp3" autostart="true" loop="true" hidden="true" ></embed>';

but no result. Please help

¿Fue útil?

Solución

Use HTMl5

 <audio src="audio.mp3" preload="auto" controls autoplay loop></audio>

The preload attribute is used in the audio element for buffering large files. It can take one of 3 values:

  1. "none" does not buffer the file

  2. "auto" buffers the media file

  3. "metadata" buffers only the metadata for the file

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top