-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ Video.js was started in the middle of 2010 and is now used on over ~~50,000~~ ~~ | |
Thanks to the awesome folks over at [Fastly][fastly], there's a free, CDN hosted version of Video.js that anyone can use. Add these tags to your document's `<head>`: | ||
|
||
```html | ||
<link href="//vjs.zencdn.net/8.18.0/video-js.min.css" rel="stylesheet"> | ||
<script src="//vjs.zencdn.net/8.18.0/video.min.js"></script> | ||
<link href="//vjs.zencdn.net/8.18.1/video-js.min.css" rel="stylesheet"> | ||
<script src="//vjs.zencdn.net/8.18.1/video.min.js"></script> | ||
``` | ||
|
||
Alternatively, you can include Video.js by getting it from [npm](https://videojs.com/getting-started/#install-via-npm), downloading it from [GitHub releases](https://github.com/videojs/video.js/releases) or by including it via [unpkg](https://unpkg.com) or another JavaScript CDN, like CDNjs. | ||
|
@@ -34,12 +34,12 @@ Alternatively, you can include Video.js by getting it from [npm](https://videojs | |
<script src="https://unpkg.com/video.js/dist/video.min.js"></script> | ||
|
||
<!-- unpkg : use a specific version of Video.js (change the version numbers as necessary) --> | ||
<link href="https://unpkg.com/[email protected].0/dist/video-js.min.css" rel="stylesheet"> | ||
<script src="https://unpkg.com/[email protected].0/dist/video.min.js"></script> | ||
<link href="https://unpkg.com/[email protected].1/dist/video-js.min.css" rel="stylesheet"> | ||
<script src="https://unpkg.com/[email protected].1/dist/video.min.js"></script> | ||
|
||
<!-- cdnjs : use a specific version of Video.js (change the version numbers as necessary) --> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.18.0/video-js.min.css" rel="stylesheet"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.18.0/video.min.js"></script> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.18.1/video-js.min.css" rel="stylesheet"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.18.1/video.min.js"></script> | ||
``` | ||
|
||
Next, using Video.js is as simple as creating a `<video>` element, but with an additional `data-setup` attribute. At a minimum, this attribute must have a value of `'{}'`, but it can include any Video.js [options][options] - just make sure it contains valid JSON! | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters