Okay
  Public Ticket #2911551
Link to stop and and timestamp play
Closed

Comments

  • Raphael Marsin started the conversation

    Hello, please excuse me, I am unprofessional.

    I use Player pro on synthetic wave form & Elementor pro

    I need to create a link that
    1. Stop the current file (if it is running)
    2. Starts the XXX file at 287 seconds

    What is / thank you for your advice?

  •  646
    Alexandre replied

    Hi Raphael,

    Please try to add this code as the link url value:

    javascript:IRON.sonaar.player.setPlayer({ id:'1511'});setTimeout(function(){ document.getElementById('sonaar-audio').currentTime=287;document.getElementById('sonaar-audio').play(); }, 500)


    You have to replace the "1511" by the playlist ID you want to start.
    You cant start a file from here, you have to built previously a playlist.

    Thanks,


    Alexandre from the Sonaar.io Crew