Track Playing Continuously Throughout Site
I am trying to figure this out, hoping someone can shed some light.
I am trying to get a song to play continuously throughout a site.
I didnt want to use frames.
It works fine 9 times out of 10. However (in IE surprise surprise). Every now and then, it fails, the debugger throws the error: Error: DOM Exception: INDEX_SIZE_ERR (1)
Here is the code I am using:
startPos = sessionStorage.getItem('playbackPosition');
document.getElementById('bgTrack').currentTime = startPos;
window.addEventListener("unload", recordTime, false);
<audio id="bgTrack" autoplay controls loop preload="auto" autobuffer onCanPlay="getStartPos()">
You can view the site here: http://www.gilespcrepairs.co.uk/photography/
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)