@wistia/wistia-player 0.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/wistia-player.d.ts +4 -0
- package/dist/wistia-player.d.ts.map +1 -0
- package/dist/wistia-player.js +38188 -0
- package/dist/wistia-player.js.map +1 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Wistia Player Web Component
|
|
2
|
+
|
|
3
|
+
`<wistia-player>` is Wistia’s player as a lightweight, easy to use web component.
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @wistia/wistia-player
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Simple player
|
|
14
|
+
|
|
15
|
+
The only required attribute is `media-id`, the ID of the video media that will be embedded.
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import '@wistia/wistia-player';
|
|
19
|
+
|
|
20
|
+
<wistia-player media-id="abc123"></wistia-player>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Player with embed options
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import '@wistia/wistia-player';
|
|
27
|
+
|
|
28
|
+
<wistia-player
|
|
29
|
+
media-id="abc123"
|
|
30
|
+
player-color="#1e64f0"
|
|
31
|
+
></wistia-player>
|
|
32
|
+
```
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare var __webpack_exports__WistiaPlayer: any;
|
|
2
|
+
declare var __webpack_exports__wistiaSwatchElement: any;
|
|
3
|
+
export { __webpack_exports__WistiaPlayer as WistiaPlayer, __webpack_exports__wistiaSwatchElement as wistiaSwatchElement };
|
|
4
|
+
//# sourceMappingURL=wistia-player.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wistia-player.d.ts","sourceRoot":"","sources":["wistia-player.js"],"names":[],"mappings":"AAuyqCA,iDAA4D;AAC5D,wDAAmE"}
|