Skip to main content

Installation

Usage

Import the modules (each calls customElements.define), then use the elements. Nest the image inside a <bw-player-provider>.
<bw-feature-image> finds its nearest <bw-player-provider> ancestor, reads content and contentIndex from it, and renders the current item’s imageUrl as an <img> (using its title as the alt text), updating on every player event. It renders nothing when the item has no image, so it’s safe to drop in unconditionally.
These components expect the BeyondWords player to be available as a global BeyondWords (the player UMD script). Load it before the provider connects.

Reference