@wistia/wistia-player
Version:
An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.
30 lines (18 loc) • 713 B
Markdown
# 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.
For more usage information, check out our [Wistia Player documentation](https://docs.wistia.com/docs/player-quick-start).
## Getting started
```bash
npm install /wistia-player
```
### Simple player
The only required attribute is `media-id`, the ID of the media that will be embedded.
```js
import '/wistia-player';
<wistia-player media-id="abc123"></wistia-player>;
```
### Player with embed options
```js
import '/wistia-player';
<wistia-player media-id="abc123" player-color="1e64f0"></wistia-player>;
```