Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the button inside a <bw-player-provider>.
<bw-prev-segment-button> finds its nearest
<bw-player-provider> ancestor. On click,
it emits a PressedPrevSegment event built with
newEvent. The player handles the event and moves
playback to the previous segment.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.
Reference