Skip to content

Commit

Permalink
updated options to include sans-children, and included self-hosted fo…
Browse files Browse the repository at this point in the history
…nt blurb

updated used by count
  • Loading branch information
mmcc authored and heff committed Oct 28, 2014
1 parent a70b9e4 commit ce18a9a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions docs/guides/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 3 additions & 1 deletion docs/guides/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ce18a9a

Please sign in to comment.