Skip to main content

Installation

Usage

Import the modules (each calls customElements.define), then use the elements. Nest the button inside a <bw-player-provider>.
<bw-prev-track-button> finds its nearest <bw-player-provider> ancestor. On click, it emits a PressedPrevTrack event built with newEvent. It’s intended for playlist sources, where the player moves to the previous 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