Audio Player: Control your player via Custom JS with new API methods

Guys, we are thrilled to introduce new API methods that help you control the behavior of your
Audio Player widget via Custom JS field:

  • - starts/continues playing the current track

  • widget.player.pause() - stops playing the current track

  • widget.player.stop() - stops playback and resets playback progress to the beginning

  • widget.player.stopAutoTrackSwitch() - disables automatic switching to the next track, after the current one is ended

You may wonder how the API methods work and we’ve got it covered in our latest article. Feel free to check it out - Audio Player: Control your player using new API methods

1 Like