Skip to main content

Installation

Usage

Import the modules (each calls customElements.define), then use the elements. Nest the indicator inside a <bw-player-provider>.
<bw-time-indicator> finds its nearest <bw-player-provider> ancestor and reads currentTime and duration from it, updating on every player event. It renders the raw values as {currentTime} / {duration}. Wrap them in your own formatter (e.g. mm:ss) for a friendlier display.
These components expect the BeyondWords player to be available as a global BeyondWords (the player UMD script). Load it before the provider connects.

Reference