1
0
mirror of https://github.com/videojs/video.js.git synced 2025-04-07 07:19:54 +02:00

updated options to include sans-children, and included self-hosted font blurb

updated used by count
This commit is contained in:
Matthew McClure 2014-10-28 15:00:34 -07:00 committed by Steve Heffernan
parent a70b9e4957
commit ce18a9af74
3 changed files with 15 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# [Video.js - HTML5 Video Player](http://videojs.com) [![Build Status](https://travis-ci.org/videojs/video.js.png?branch=master)](https://travis-ci.org/videojs/video.js)
> Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through [plugins](https://github.com/videojs/video.js/wiki/Plugins)). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over 50,000 websites.
> Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through [plugins](https://github.com/videojs/video.js/wiki/Plugins)). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over ~~50,000~~ 100,000 websites.
## Quick start
Thanks to the awesome folks over at [Fastly](http://www.fastly.com/), there's a free, CDN hosted version of Video.js that anyone can use. Simply add these includes to your document's

View File

@ -131,6 +131,17 @@ var player = videojs('video-id', {
});
```
All the children can start getting a little verbose, so to simplify things, you can also set options for child components directly on the parent options.
This is functionally the exact same as the above, for instance.
```javascript
var player = videojs('video-id', {
controlBar: {
muteToggle: false
}
});
```
This also works using the `data-setup` attribute on the video element, just remember the options need to use proper JSON
notation.

View File

@ -25,7 +25,9 @@ You can download the Video.js source and host it on your own servers, or use the
```
### Self Hosted. ###
With the self hosted option you'll also want to update the location of the video-js.swf file.
To entirely self-host, you'll need to pull in the font files and let Video.js know where the swf is located. If you simply copy the dist folder or zip file contents into your project everything
should Just Work™, but the paths can easily be changed by editing the LESS file and re-building, or by modifying the generated CSS file.
```html
<link href="//example.com/path/to/video-js.css" rel="stylesheet">
<script src="//example.com/path/to/video.js"></script>