javascript - Audio tag doesn't always play when triggered in IE(10) -
i have audio tag on page, works fine of times. when working on ie 10, after few days, play once. hint find has ie's cache, since crtl-r reload seems temporary fix (and not desirable solution/work-around in particular web-app).
i append audio tag jquery body using
$('<audio id="notifyaudio"> <source src="/admin/includes/notification.ogg" type="audio/ogg"> <source src="/admin/includes/notification.mp3" type="audio/mpeg> </audio>').appendto('body');`
and trigger using $('#notifyaudio')[0].play();
anyone familiar problem or known bug?
Comments
Post a Comment