How to play audio song via api

Input in Text editor of WordPress:

<button type="button" onclick="document.querySelector('.audioplayer').api_play(); ">Play</button>

or

<button type="button" onclick="document.querySelector('.audiogallery').api_play_curr_media(); ">Play</button>

Was this article helpful?

Related Articles

2 Comments

  1. Hi, is there anything else that needs to be added to this for this to work? I am not getting it to play my footer player.
    Can it be started from an Elementor button?

Leave A Comment?