Use autoplay
: <audio controls autoplay>
.
The autostart
attrbiute does not exist in the spec.
Вопрос
I embed the music in my website. it's working in IE but auto start is not working in Mozilla and chrome. please help to fix this issue. HTML:
<audio controls>
<source src="media/file.mp3" type="audio/mpeg">
<source src="media/file.ogg" type="audio/ogg">
<embed height="50" width="100" src="media/file.mp3" autostart="true">
</audio>
Thanks
Решение
Use autoplay
: <audio controls autoplay>
.
The autostart
attrbiute does not exist in the spec.