Okay
  Public Ticket #2821505
Gutenberg in-page player not initiating (with a pjax theme)
Closed

Comments

  • Julien G started the conversation

    Hi! 

    I keep working on testing things with the plugin.
    I stumbled upon a problem though and maybe you can help.

    Here is what to do to reproduce the issue:

    - In the related url you can see I included a player in the page that plays a track called "Nos Optimistes". Play it.
    - on the sidebar select another page, "ANDERSEN, Hans Christian – 18 contes" in the "Articles Récents" part

    - here is the issue : the player on this second page does not seem to load.
    - if I hit F5 to reload, the player works well though.

    Is there a js action I should trigger or something to guarantee the plugin will properly load the in-page player ?

    Thanks in advance

  •  1,114
    Max replied

    Hi,

    Im not familiar with your pjax script but perhaps you can use our js function to reload the player.

    try to use the js function setIronAudioplayers(); once your page is loaded.

    Thanks,


    Max from the Sonaar.io Crew

  • Julien G replied

    That's pretty much exactly what I was looking for. It works! I'll add it on page load. Perfect!

    Thanks a lot for the quick answer 🙏

  •  1,114
    Max replied

    You are welcome

    Thanks,


    Max from the Sonaar.io Crew

  • Julien G replied

    It worked :)

    You can close this issue :) 

    Thanks again