[audio] player locks up after playing 11 files
-
I have many [audio] elements on a WP page and as you click through them, after the 11th file, the 12th one won’t load and locks up the page, which then needs to be refreashed to reset it. Try again and the same thing keeps happening. Anyone have any idea why this is happening and how to fix it?
I have done further testing by creating a simple html page with the files on it works fine with no issues. That would be using this basic layout:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> window.addEventListener("play", function(evt) { if(window.$_currentlyPlaying) { window.$_currentlyPlaying.pause(); } window.$_currentlyPlaying = evt.target; }, true); </head> <body> <audio controls><source src="file.mp3" type="audio/mpeg"></audio> <audio controls><source src="file.mp3" type="audio/mpeg"></audio> <audio controls><source src="file.mp3" type="audio/mpeg"></audio> <!-- continue to add lines for audio files --> </body> </html>
I tested up to 25 players and they were all able to be played, paused and replayed, etc.
So I also tried a completely stripped down WordPress page with just the audio files added, Twenty Seventeen theme, all plugins deactivated, and I still have the issue of not being able to play more than 11 files without having to refresh the page.
I am not sure if this would be a memory or cache issue or what. Some other bug in WP? Would a third party player fix this?
Thanks for any help or guidance.
- The topic ‘[audio] player locks up after playing 11 files’ is closed to new replies.