Installation
Usage
<bw-player-provider> creates a BeyondWords.Player and exposes it to
descendant elements. Extend BwPlayerConsumer to read it.
API
<bw-player-provider>creates the player from itsdata-*attributes (data-project-id,data-content-id,data-source-id,data-playlist-id,data-player-style,data-show-user-interface, plus inlinedata-content,data-adverts,data-advert-indexanddata-analytics-consent) and destroys it on disconnect.BwPlayerConsumeris the base class. It walks up the DOM to find its provider and exposes the player via the_playergetter and the widget mode via_mode. Throws if no<bw-player-provider>ancestor exists.