[audio] player locks up after playing 11 files

  • Unknown's avatar

    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?

  • Howdy – I’m happy to take a closer look at this. Which site are you working on? Could you send me a link to the post or page where you’re adding the audio files?

  • Unknown's avatar

    Thank you for the reply.

    I have done some more testing and find that 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>

    Just adding more audio files – I tested up to 25 and they we 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.

    So I am not sure if this would be a memory or cache issue or what. Let me know how to forward you a private link.

  • Can you share the URL of the site you are working on? As you mention plugins, that indicates that you may be working on a site using the WordPress software but hosted elsewhere.

  • Unknown's avatar

    Yes, this is apparently an issue withthe WP software/platform.
    I prefer not to share the URL publicly.
    Would it be better to try duplicating the issue within a wordpress.com site?

  • Hi there,

    If this is happening on a self-hosted installation of WordPress, we can’t help you fix it. Even if you can replicate the issue on a WordPress.com site as well, if it’s an issue with the core WordPress software, it needs to be fixed in Core before it can be fixed on WordPress.com. We can only help with issues specific to sites hosted on WordPress.com in this forum, and the account you’re using to post here does not own any WordPress.com sites.

    For help with issues with the open source software itself, please ask in https://wordpress.org/support/, or if you’re sure you have a confirmed bug you can open a bug report directly at https://core.trac.wordpress.org/ – you’ll need to register a WordPress.org account if you don’t have one already to post in either of those locations.

  • Unknown's avatar
  • Any time. Hope you manage to get this fixed :)

  • The topic ‘[audio] player locks up after playing 11 files’ is closed to new replies.