Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the button inside a <bw-player-provider>.
<bw-prev-seconds-button> finds its nearest
<bw-player-provider> ancestor. On click,
it emits a PressedSeekBack event (built with
newEvent) carrying the number of seconds to seek.
The data-seconds attribute controls both the jump distance and the label,
and defaults to 10.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.
Reference