Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the button inside a <bw-player-provider>.
<bw-next-segment-button> finds its nearest
<bw-player-provider> ancestor. On click,
it emits a PressedNextSegment event built with
newEvent. The player handles the event and moves
playback to the next 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