Audio item fails to play sporadically on android
-
I'm using an Audio Item to play a short wav audio track. When a mouse area is clicked the togglePlay method is called and the audio begins to play. On the desktop version of the app everything is working fine, while on android the audio sometimes fails to play, i.e. I hear no sound, but the audio item playbackstate is PlayingState and remains in this state forever. This usually happens the first time I try to play the audio, while it works the successive times, but is not deterministic.
Any sugesstion on how to solve this problem?@
function togglePlay() {
if(audioItem.playbackState == Audio.StoppedState) {
audioItem.play()
playingBegin()
} else {
audioItem.stop()
}
}
@