Okay
  Public Ticket #2851369
Back Nav stops continuous play
Closed

Comments

  • Mark Simkiss started the conversation

    Great plugin!  Love it.  We're integrating into our new website soon to roll out. I am experiencing a few problems however.  For this post, the issue I have is that continuous play works everywhere, but when you navigate backwards (press back button on browser) the music stops and you have to manually restart it.  Essentially clicking on links (moving forward) keeps it playing and hitting back stops it.  Have you seen this before?  Hopeful to resolve it.  Love having the music playing in the background.

    Thanks!

    Mark

  •  1,114
    Max replied

    Hi,

    thanks for reporting this.

    I will add this issue on our roadmap and will pass this to our dev team. Will probably have this fixed later this month.

    Thanks,


    Max from the Sonaar.io Crew

  • Mark Simkiss replied

    Can't wait!  Thanks!!!  😀😀😀😀

  • Mark Simkiss replied

    Hey Max!   Still hopeful that this will be resolved!   Anything brewing on this just yet?  😀

  •  667
    Alexandre replied

    Hi Mark,
    Unfortunately we didnt find a way to make this possible.
    Browser does not allow autoplay. We cant start any audio before any interaction from the user when we land on a site. The back button, as the refresh button, do the user land again on the site.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Mark Simkiss replied

    Thanks for your reply, Alex.  I understand the dilemma.  I have an idea however... We are all unfortunately familiar with websites that "disable" the back button by either using multiple redirects, or the other method of manipulating the browser history with JavaScript with something like ...

    history.pushState({'page': 2}, "Page 2");

    window.addEventListener('popstate', (e) => {

    history.forward();

    });

    Couldn't we then use this responsibly, however, and capture the browser's previous page url, and load that page when the user hits the back button, in place of "going back" to reach the page... the browser would move "forward" to the user's intended page.

    Is this technically feasible?  Seems possible to my noob scripting mind.

    Not sure it would solve the problem yet, but the ability to have uninterrupted background music is so awesome that I'm determined to find a solution. 😀

    Thanks!


  •  667
    Alexandre replied

    Hi Mark, 

    For now, we dont want to take that path. Maybe it is something we will consider if many customers do the same request but for now we dont want to manipulate the browser history. 
    I appreciate your tip. I didnt have thought about this way to do it.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Mark Simkiss replied

    Understood.  Thanks for your help on this Alex!  Bonne journée!

    Mark

  •  667
    Alexandre replied

    You are welcome

    Thanks,


    Alexandre from the Sonaar.io Crew