What api functions are available ?

We have api functions, for play, pause, resize, seek_to, step_forward, step_backwords, get current time / total time , set current time / total time, set volume, slowdown playback , gallery go to track, stick player change track.

For these functions to take place, you need to insert HTML content in your post.

 

 

<hr> 
<a href="" onclick="document.querySelector('.audioplayer').api_play_media(); return false;">Play
From API</a>

you can do this with HTML blocks from gutenberg.

Other functions:

  • document.querySelector('.audioplayer').api_pause_media();
  • document.querySelector('.audioplayer').api_set_playback_speed(0.5);
  • document.querySelector('.audioplayer').api_set_playback_speed(1);
  • document.querySelector('.audioplayer').api_step_forward(1);
  • document.querySelector('.audioplayer').api_step_back(1);

 

Was this article helpful?

Related Articles

Leave A Comment?