Okazari / Rythm.js

A javascript library that makes your page dance.
https://okazari.github.io/Rythm.js/
GNU General Public License v3.0
3.93k stars 250 forks source link

any way to make the audio loop? #122

Closed therapy closed 4 years ago

therapy commented 4 years ago

i tried using

<audioid="music" class="music" src="resources/mw.mp3" autoplay loop onplaying="" style="display: none;"></audio> rythm.connectExternalAudioElement(music)

but that didnt work, could you maybe add like a loop feature? thanks in advance :)

therapy commented 4 years ago

solved it, my code was `

` var rythm = new Rythm() rythm.connectExternalAudioElement(document.getElementById("music")) rythm.start() document.getElementById("music").play()
Okazari commented 4 years ago

Glad you found a solution :) ! Feel free to ask if you have any more question.