@mux/videojs-kit
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@mux/videojs-kit", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,5 +12,7 @@ # Video.js + Mux Kit | ||
// yarn | ||
yarn add @mux/videojs-kit | ||
yarn add @mux/videojs-kit | ||
``` | ||
If you don't use a package manager such as NPM, there are hosted versions provided by [unpkg.com](https://unpkg.com) too. | ||
## Usage | ||
@@ -20,3 +22,3 @@ | ||
Import the javascript and css in your application like this: | ||
If you use a package manager such as NPM, import the javascript and css in your application like this: | ||
@@ -29,4 +31,11 @@ ```js | ||
Then, on your page include a <video> element where you want to add your player. | ||
If you'd rather use the hosted versions, include this in your HTML page: | ||
```js | ||
// script tags | ||
<script src="https://unpkg.com/@mux/videojs-kit@0.1/dist/index.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@mux/videojs-kit@0.1/dist/index.css"> | ||
``` | ||
Then, on your page include a `<video>` element where you want to add your player. | ||
```html | ||
@@ -41,5 +50,5 @@ <video | ||
data-setup='{ | ||
"timelineHoverPreviews": true, | ||
"plugins": { | ||
"mux": { | ||
"timelineHoverPreviews": true, | ||
"data": { | ||
@@ -71,5 +80,5 @@ "env_key": "ENV_KEY", | ||
const player = videojs('mux-default', { | ||
"timelineHoverPreviews": true, | ||
"plugins": { | ||
"mux": { | ||
"timelineHoverPreviews": true, | ||
"data": { | ||
@@ -76,0 +85,0 @@ "env_key": "ENV_KEY", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
661512
18
3079
92