Hello,
I'm trying to add a background sound that plays as the user navigates the site, across pages. I tried setting "Play in background" in the IN5 Audio widget and also inserting the JS I found here (pasted below) as a resource.
I'm working with IN5 version 3.7.18, Indesign 2022, MacOS BigSur (11.6). Any ideas? I know it should work, as I did it a couple of years ago with the JS provided and it went fine.
Thanks a lot.
The JS used is this:
stopAllMedia = function (targ) {
if(!targ) targ = document;
$(targ).find('audio,video').each(function() {
var media = $(this)[0], player = media.player || media;
if($(this).parents('.page').index() == 0) return false;
try{player.pause(); media.currentTime = 0;}catch(e){}
});
}