mercredi 31 décembre 2014

Ionic + Howler.JS - How to Play sound until user is holding button?

I would like to ask how can i do following using Ionic and Howler.js (https://github.com/goldfire/howler.js/).


If user is holding button is played sound file using Howler.JS, in case that user release button is sound stopped.


I tried to find in Ionic documentation event for holding button but without luck (http://ionicframework.com/docs/api/directive/onTap/)


How can i do it please?


Thanks for any help.


Aucun commentaire:

Enregistrer un commentaire