Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the button inside a <bw-player-provider>.
<bw-next-track-button> finds its nearest
<bw-player-provider> ancestor. On click,
it emits a PressedNextTrack event built with
newEvent. It’s intended for playlist sources,
where the player moves to the next track.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.
Reference