video.js-master
所属分类 :文章/文档
开发工具 :Java
文件大小 :481KB
下载次数 :0
上传日期 :2018-09-17 10:23:31
上 传 者 :
打131f1
说明: JAVA高级指导,jque日期控件,高级高级工程师学习高级,学习JAVA必要信息 (JAVA advanced guidance, virtual machine optimization strategy, senior engineer learning advanced, learning JAVA necessary information)
文件列表 :
.babelrc (86, 2017-03-03) .editorconfig (239, 2017-03-03) .jsdoc.json (1583, 2017-03-03) .npmignore (95, 2017-03-03) .remarkignore (13, 2017-03-03) .remarkrc.js (2817, 2017-03-03) .travis.yml (2182, 2017-03-03) CHANGELOG.md (101974, 2017-03-03) COLLABORATOR_GUIDE.md (11911, 2017-03-03) CONTRIBUTING.md (13474, 2017-03-03) Gruntfile.js (201, 2017-03-03) LICENSE (578, 2017-03-03) bower.json (400, 2017-03-03) build (0, 2017-03-03) build\bin (0, 2017-03-03) build\bin\prerelease (926, 2017-03-03) build\bin\version (97, 2017-03-03) build\docs-only.js (546, 2017-03-03) build\docs (0, 2017-03-03) build\docs\styles (0, 2017-03-03) build\docs\styles\videojs.css (330, 2017-03-03) build\grunt.js (15131, 2017-03-03) build\license-header.txt (390, 2017-03-03) build\options-customizer.js (1520, 2017-03-03) build\tasks (0, 2017-03-03) build\tasks\cdn-links.js (561, 2017-03-03) build\tasks\languages.js (1406, 2017-03-03) build\tasks\style-injection.js (506, 2017-03-03) build\tasks\test-local.js (919, 2017-03-03) build\tasks\vjs-version.js (185, 2017-03-03) composer.json (333, 2017-03-03) contrib.json (20698, 2017-03-03) docs (0, 2017-03-03) docs\examples (0, 2017-03-03) ... ...
![Video.js logo][logo]
# [Video.js - HTML5 Video Player][vjs]
[![Build Status][travis-icon]][travis-link]
[![Coverage Status][coveralls-icon]][coveralls-link]
[![Slack Status][slack-icon]][slack-link]
[![NPM][npm-icon]][npm-link]
> 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][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~~ ~~200,000~~ [400,000 websites][builtwith].
## Quick Start
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 ``:
```html
```
> For the latest URLs, check out the [Getting Started][getting-started] page on our website.
Next, using Video.js is as simple as creating a `
` 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!
```html
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
```
When the page loads, Video.js will find this element and automatically setup a player in its place.
If you don't want to use automatic setup, you can leave off the `data-setup` attribute and initialize a `` element manually using the `videojs` function:
```js
var player = videojs('my-player');
```
The `videojs` function also accepts an `options` object and a callback to be invoked
when the player is ready:
```js
var options = {};
var player = videojs('my-player', options, function onPlayerReady() {
videojs.log('Your player is ready!');
// In this context, `this` is the player that was created by Video.js.
this.play();
// How about an event listener?
this.on('ended', function() {
videojs.log('Awww...over so soon?!');
});
});
```
If you're ready to dive in, the [Getting Started][getting-started] page and [documentation][docs] are the best places to go for more information. If you get stuck, head over to our [Slack channel][slack-link]!
## Contributing
Video.js is a free and open source library, and we appreciate any help you're willing to give - whether it's fixing bugs, improving documentation, or suggesting new features. Check out the [contributing guide][contributing] for more!
_Video.js uses [BrowserStack][browserstack] for compatibility testing._
## [License][license]
Video.js is [licensed][license] under the Apache License, Version 2.0.
[browserstack]: https://browserstack.com
[builtwith]: https://trends.builtwith.com/media/VideoJS
[contributing]: CONTRIBUTING.md
[coveralls-icon]: https://coveralls.io/repos/github/videojs/video.js/badge.svg?branch=master
[coveralls-link]: https://coveralls.io/github/videojs/video.js?branch=master
[docs]: http://docs.videojs.com
[fastly]: http://www.fastly.com/
[getting-started]: http://videojs.com/getting-started/
[license]: LICENSE
[logo]: http://videojs.com/img/logo.png
[npm-icon]: https://nodei.co/npm/video.js.png?downloads=true&downloadRank=true
[npm-link]: https://nodei.co/npm/video.js/
[options]: docs/guides/options.md
[plugins]: http://videojs.com/plugins/
[slack-icon]: http://slack.videojs.com/badge.svg
[slack-link]: http://slack.videojs.com
[travis-icon]: https://travis-ci.org/videojs/video.js.svg?branch=master
[travis-link]: https://travis-ci.org/videojs/video.js
[vjs]: http://videojs.com
近期下载者 :
相关文件 :
收藏者 :