Hi,
I have an issue with Zappar audio. When I trigger an audio effect from a timeline, everything is OK. But when I visit (via launchUrl()) an external site I have developed which uses audio and then I return to Zappar app, sounds do not work any more. All the Zappar app audio functionality is compromised: it does not beep any more when it scans a new zapcode, for example. I have to kill and restart the app to restore sound functionality.
I am developing on macOS 10.13, latest ZapStudio, and using the latest Zappar app on iOS 13.1.3 on an iPhone XS.
This is the JS code I use to programmatically load sounds in the external site (which works like a charm) :
function sound(src) {
this.sound = document.createElement("audio");
this.sound.src = src;
this.sound.setAttribute("preload", "auto");
this.sound.setAttribute("controls", "none");
this.sound.style.display = "none";
document.body.appendChild(this.sound);
this.play = function(){
this.sound.play();
}
this.stop = function(){
this.sound.pause();
}
}
...
taDaa = new sound("sounds/tadaa.mp3");
....
taDaa.play()
Any clue? Is this a known bug? Is there anything in the site loaded with launchUrl() which captures the sound engine in some exclusive way and has to be explicitly released when leaving?
Thank you in advance,
Aaron
Fishbone Creek Italy