Installation
Usage
Import the modules (each calls customElements.define), then use the elements. Nest the title inside a <bw-player-provider>.
<bw-content-title> finds its nearest
<bw-player-provider> ancestor and reads
content and contentIndex from it, updating on every player event. It
renders the current item’s title (content[contentIndex].title) as its text
content.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.
Reference