View Single Post
Old 09-19-2011, 07:08 AM   #50
georg3200
Connoisseur
georg3200 began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2008
Device: none
autoplay in audio works only once

hi there,
I integrated audio in a book, which works fine.
Now I use the autoplay attribute to make the file play each time you flip to that page. so it should play each time this short page shows on the screen.
But this works only once. Then you have to close the book and open it again to hear the sound.

Here is my code:
<audio autoplay="autoplay" loop="0" preload="auto">
<source src="test.mp3" type="audio/mp3"/>
</audio>

I've played around with loop and preload, but always the same. autoplay="true" makes no difference. The sound plays once, then never again until I re-open the book.

Does someone has a clue?
Thanks
georg3200 is offline   Reply With Quote