I am having a weird issue with iOS.
I use the Ionic Native Media plugin to record audio and try to play the recording using the HTML5 Web Audio API (WavesurferJS or HowlerJS). After recording the sound, if I try to play the recording right away, the sound will not play, but if I close the application and then open it again, the sound will play normally.
The error that HowlerJS launches is "audio error decoding." My thoughts are the Native Media plugin, which did not fully release the file, therefore does not give HowlerJS permission to read audio data.
Any thoughts or direction are welcome.
javascript ios ionic-framework ionic3
Andrew Ex
source share