There is what i've done

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

but no result. Please help

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top