Open cobrajs opened 2 days ago
does this also happen when is loaded using loadSound rather than loadMusic
Using this example, it does loop correctly when using loadSound. Although doing that in that example, it looks like time()
is reporting incorrectly when you speed up the music (as in, it loops correctly, but the time and progress bar are going to slow based on the set speed). I tested it out by increasing the speed to 5 because the example song is too long and I'm impatient haha
I got it to work locally by adding el.loop = Boolean(opt.loop);
below this line, since playMusic()
doesn't use the AudioPlayOpt the same way that play()
does.
Setting
loop: true
doesn't set loop for musicWhen playing music with
play('music', { loop: true })
, the loop property is not set.Version
What version are you running?
To Reproduce
Steps to reproduce the behavior:
loadMusic('music', '<url>')
play('music', { loop: true })
Expected behavior
Music should actually loop when
loop: true
is passed in for the AudioPlayOpt.