I could not find this in the buzz.js documentation but is there any bindings for the loop event. Something like
soundObject.bind('looping', function(e){
});
I am looking to see how many times the sound object has looped, if anyone with knowledge around this library has a workaround that would also help. I tried to bind to the ended
event but that doesn't work?
EDIT:
I am thinking as a hack that i could bind to the playing
event and use the getPercent()
method to see when i have hit 100
and keep a counter to find number of loops?
Since there are no events that trigger with the loop option, then why not implement your own loop functionality by binding to the
ended
event and than callingplay()
again, this way you know when each play has finished.Demo fiddle