Hello, I was looking into this some more today, and noticed something.
If I set a breakpoint in firefox for the line
document.body.appendChild(audio);
Then the audio file plays. I wonder if that is because it delays the next line, which is removing the audio element?
document.body.removeChild(audio);
Maybe there was a behavior change, at one time it worked to append and then immediately remove the audio element... but now the element isn't around long enough to actually play the audio?
Any javascript guru's know of a way to delay the removeChild until after the audio has a chance to fully play.
Hello, I was looking into this some more today, and noticed something.
If I set a breakpoint in firefox for the line body.appendChil d(audio) ;
document.
Then the audio file plays. I wonder if that is because it delays the next line, which is removing the audio element?
document. body.removeChil d(audio) ;
Maybe there was a behavior change, at one time it worked to append and then immediately remove the audio element... but now the element isn't around long enough to actually play the audio?
Any javascript guru's know of a way to delay the removeChild until after the audio has a chance to fully play.
https:/ /git.evergreen- ils.org/ ?p=Evergreen. git;a=blob; f=Open- ILS/web/ js/dojo/ openils/ Util.js; h=e3588ae61f006 ead72029a357112 a77eeda6b3d2; hb=686ccf782a2d ba2bb6ba1abf82e dcee4590b1153# l362