Installation
Usage
Compose the playlist custom elements inside a
<bw-playlist-player-provider>. Import the modules
(each calls customElements.define), then arrange the elements:
Unlike the React block, there is no single <bw-playlist-player> element. Pass
data-project-id and data-playlist-id instead of a single data-source-id.
<bw-playlist-player-info> (call-to-action + duration) shows while stopped, and
<bw-playlist-playback-controls> (playback rate, previous/next track, time, and
progress) shows once playback starts. <bw-playlist-toggle-button> shows or hides
the scrollable <bw-playlist-list> of the playlist’s items. Every element resolves
its nearest <bw-playlist-player-provider>
ancestor and subscribes to player events; the buttons emit events built with
newEvent.
These components expect the BeyondWords player to be available as a global
BeyondWords (the player UMD script). Load it before the provider connects.