• darksoundlab

    (@darksoundlab)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Two places to start:

    1) Disable cache in your browser. It’s possible you’re overloading that. I know it’s a paradox.

    2) Check your server logs for errors. It will show if it’s a memory issue on that end.

    Thread Starter darksoundlab

    (@darksoundlab)

    Thanks for the reply but, unfortunately I need a solution for visitors that would not require them to disable their browser cache.

    I also was not able to find any memory errors through the server.

    Any other ideas?

    (As an aside, I get proper playback functioning (being able to playback all without having the refresh page) when using the MP3-jPlayer plugin. I just don’t care for the look or the styling, which I am trying to fix.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[audio] player locks up after playing 11 files’ is closed to new replies.