Install tools
npm install| function Track(src, spriteLength, audioLead) { | |
| var track = this, | |
| audio = document.createElement('audio'); | |
| audio.src = src; | |
| audio.autobuffer = true; | |
| audio.load(); | |
| audio.muted = true; // makes no difference on iOS :( | |
| /* This is the magic. Since we can't preload, and loading requires a user's | |
| input. So we bind a touch event to the body, and fingers crossed, the |