Open amitkeret opened 10 years ago
Yeah I have noticed this on Android too.
Ok, this could be it, chorus doesn't try and play until there is user input but it does do a createSound automatically (which might be the same as load), I could probably defer this to happen on user input (click play). But then why would it not work when you add things to the playlist and press play after?
I'll have to do some more testing. I'm open to any better alternatives to SoundManager? It has caused me a few headaches.
Not sure if this is true for Android as well, but I can confirm this on iOS.
Currently, the SoundManager implementation doesn't work on mobile devices. This is because there's an inherent limitation that prevent auto-play (found this on SoundManager docs). I believe only the first track needs to be actively initiated, and the others on the playlist can follow via the
onfinish
event.Looks like an extra step needs to be added to the workflow for mobile devices - something like: "once the playlist populates, add a Play button on the screen and force user to press it"??
Not the most elegant solution... but will probably make it work.