@wistia/wistia-player
v0.0.80
Published
An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.
Downloads
61,697
Readme
⚠️ Note: This package is in active development. Updates may unexpectedly introduce breaking changes. Use in production at your own risk.
🚧 Note: The React Wrapper has been removed from this package. To use the new React Wrapper, please use
@wistia/wistia-player-react
.
Wistia Player Web Component
<wistia-player>
is Wistia's embeddable web component which can be used to add responsive, lightweight, and SEO-friendly videos to your site.
Getting started
npm install @wistia/wistia-player
Simple player
The only required attribute is media-id
, the ID of the media that will be embedded.
import '@wistia/wistia-player';
<wistia-player media-id="abc123"></wistia-player>;
Player with embed options
import '@wistia/wistia-player';
<wistia-player media-id="abc123" player-color="1e64f0"></wistia-player>;